L4sBot@lemmy.worldMB to Technology@lemmy.worldEnglish · 8 months agoSelf-pay gas station pumps break across NZ as software can’t handle Leap Dayarstechnica.comexternal-linkmessage-square26fedilinkarrow-up1295arrow-down14file-text
arrow-up1291arrow-down1external-linkSelf-pay gas station pumps break across NZ as software can’t handle Leap Dayarstechnica.comL4sBot@lemmy.worldMB to Technology@lemmy.worldEnglish · 8 months agomessage-square26fedilinkfile-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-up15·8 months agoSomeone forgot a case in their test suite.
minus-squareBrianTheeBiscuiteer@lemmy.worldlinkfedilinkEnglisharrow-up31·8 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-up4·8 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)