I know this isn’t any kind of surprise, and yet, well…

      • 018118055
        link
        fedilink
        arrow-up
        10
        ·
        10 months ago

        Yeah that’s a different shitshow but agreed it is likely to be worse - like y2k the effects are smeared out before and after the date.

        • Robmart@lemm.ee
          link
          fedilink
          arrow-up
          6
          ·
          edit-2
          10 months ago

          32bit systems will stop working. The Unix timestamp, which increases by 1 every second and started the first second of 1970, will reach the max of 32 bit integers. Bad things will follow.

          • bjorney@lemmy.ca
            link
            fedilink
            arrow-up
            10
            ·
            10 months ago

            This has already been patched on all 64 bit OSes though - whatever 32 bit systems are still in existence in another 15 years will just roll their dates back 50 years and add another layer of duct tape to their jerry-rigged existence

    • deegeese
      link
      fedilink
      arrow-up
      6
      arrow-down
      3
      ·
      10 months ago

      Nah.

      Same thing happened in 2000 and it was a mouse’s fart.

      • 018118055
        link
        fedilink
        arrow-up
        19
        ·
        10 months ago

        Because of months of preparation. I know, I was doing it.

        • deegeese
          link
          fedilink
          arrow-up
          3
          ·
          10 months ago

          And now that every time library has been updated, we’re safe until our grandchildren reimplement those bugs in a language that has not yet been invented.

          • 018118055
            link
            fedilink
            arrow-up
            8
            ·
            10 months ago

            I’ve already seen reimplementation of 2 digit dates here and there.

              • 018118055
                link
                fedilink
                arrow-up
                4
                ·
                10 months ago

                Fortunately I will not be involved. Hopefully I can make something from 2038 though.

                • deegeese
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  10 months ago

                  You’re not the only one forseeing a nice consultant payday there.

            • JustCopyingOthers@lemmy.ml
              link
              fedilink
              arrow-up
              3
              ·
              10 months ago

              I went to uni in the mid 90s when Y2K prep was all the rage, went back to do another degree 20 years later. It was interesting to see the graffiti in the CS toilets. Two digits up to about 1996, four digits for a decade, then back to two.

      • 018118055
        link
        fedilink
        arrow-up
        3
        ·
        10 months ago

        Yeah who knows if our computers are sticks by either date

    • jubilationtcornpone@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      15
      ·
      10 months ago

      In every project I’ve ever worked on, there’s been somebody who must have been like, “HurDur Storing timestamps in UTC is for losers. Nyeaahh!”

      And if I ever find that person, I’m going to get one of those foam pool noodles, and whack him/her over the head with it until I’ve successfully vented all my frustrations.

      • 48954246@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        10 months ago

        The only time using UTC breaks down is when any sort of time change gets involved.

        If I say I want a reminder at 9am six months from now and you store that as UTC, a day light savings change will mean I get my reminder an hour early or late depending on where in the world I am

  • DieguiTux8623@feddit.it
    link
    fedilink
    arrow-up
    12
    ·
    10 months ago

    Programming aside, where I live in Southern Europe we have a tradition according to which leap years bring bad luck. After 2020, I don’t know what to expect… nuclear apocalypse maybe?

  • Synthead@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    10 months ago

    Always, always, always, without taking any shortcuts, use a tzinfo library for your language.

  • 👍Maximum Derek👍@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    7
    ·
    10 months ago

    I’m not worried about my code, I’m (very slightly) worried about all the date libraries I used because I didn’t want code that shit again for the billionth time.

    • perishthethought@lemm.eeOP
      link
      fedilink
      English
      arrow-up
      7
      ·
      10 months ago

      Your comment made me go look at the source for moment.js. It has “leap” 13 times and the code looks correct. I assume they test stuff like this.

      • 👍Maximum Derek👍@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        4
        ·
        10 months ago

        Yeah, I’m generally using the common data/time libraries in most (if not all) languages and I’m pretty sure they’ve all been through more than 1 leap year at this point. I just never 100% trust the code I don’t control - 99.9% maybe, but never 100.

        • lightnegative@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          10 months ago

          I just never 100% trust the code I don’t control

          I never 100% trust the code I do control. Partially because a lot of it is inherited but also because I know corners were cut but I can’t always remember when and where

  • Papamousse@beehaw.org
    link
    fedilink
    arrow-up
    7
    ·
    10 months ago

    I worked in broadcasting (programming broadcasting applications), everything is done with PTP (Precise Time Protocol) and TC (timecode) in video. We had to support leap second, it’s not as easy, but in the end, insert black frames for 1s and that’s it.