Self-pay gas station pumps break across NZ as software can’t handle Leap Day::“We’ll add it to our Outlook reminders…”

  • ben
    link
    English
    173 months ago

    Someone forgot a case in their test suite.

    • @[email protected]
      link
      fedilink
      English
      333 months ago

      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.