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

    • BrianTheeBiscuiteer@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 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.

  • Rikudou_Sage@lemmings.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    It was millennia ago when I first read “don’t ship your own date/time library”. Guess these fellas somehow missed it.

    (I did this thing a while ago, but hopefully it doesn’t count since it’s a joke library)

  • Randelung@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    And THAT’S why you don’t roll your own datetime class/column format. It’s a solved problem, people!

  • Blackmist@feddit.uk
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    Days you should book off as a developer:

    Feb 29th. Clocks go forward day. Clocks go back day.

    If you’ve done anything with dates or scheduling, these days will fuck it.