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-square25fedilinkarrow-up10arrow-down10file-text
arrow-up10arrow-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-square25fedilinkfile-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-up0·8 months agoSomeone forgot a case in their test suite.
minus-squareBrianTheeBiscuiteer@lemmy.worldlinkfedilinkEnglisharrow-up0·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-up0·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)