L4sBot@lemmy.worldMB to Technology@lemmy.worldEnglish · 9 months agoSelf-pay gas station pumps break across NZ as software can’t handle Leap Dayarstechnica.comexternal-linkmessage-square26fedilinkarrow-up1311arrow-down15file-text
arrow-up1306arrow-down1external-linkSelf-pay gas station pumps break across NZ as software can’t handle Leap Dayarstechnica.comL4sBot@lemmy.worldMB to Technology@lemmy.worldEnglish · 9 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-up17·9 months agoSomeone forgot a case in their test suite.
minus-squareBrianTheeBiscuiteer@lemmy.worldlinkfedilinkEnglisharrow-up33·9 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-up5·9 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)