L4sBot@lemmy.worldMB to Technology@lemmy.worldEnglish · 10 months agoSelf-pay gas station pumps break across NZ as software can’t handle Leap Dayarstechnica.comexternal-linkmessage-square15fedilinkarrow-up111arrow-down10file-text
arrow-up111arrow-down1external-linkSelf-pay gas station pumps break across NZ as software can’t handle Leap Dayarstechnica.comL4sBot@lemmy.worldMB to Technology@lemmy.worldEnglish · 10 months agomessage-square15fedilinkfile-text
Self-pay gas station pumps break across NZ as software can’t handle Leap Day::“We’ll add it to our Outlook reminders…”
minus-squareben@lemmy.ziplinkfedilinkEnglisharrow-up1·10 months agoSomeone forgot a case in their test suite.
minus-squareBrianTheeBiscuiteer@lemmy.worldlinkfedilinkEnglisharrow-up1·10 months agoI can’t imagine what logic would’ve hinged on February having 28 days. It’s not like 29 exceeds some maximum value for days in a month. Probably someone thought it was a good idea to write their own date-time library.
minus-square_edge@discuss.tchncs.delinkfedilinkEnglisharrow-up1·10 months agoNext = (year+1, month, day)
Someone forgot a case in their test suite.
I can’t imagine what logic would’ve hinged on February having 28 days. It’s not like 29 exceeds some maximum value for days in a month. Probably someone thought it was a good idea to write their own date-time library.
Next = (year+1, month, day)