• RegalPotoo@lemmy.world
    link
    fedilink
    English
    arrow-up
    133
    arrow-down
    1
    ·
    3 months ago

    As a software dev who has lost weeks of his life dealing with timezones, leap days, daylight savings time, date math and other associated nonsense I fully support this being the way the world is. I don’t want to go through the transition to get there though

    • lugal@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      72
      arrow-down
      2
      ·
      3 months ago

      Bad news: this has nothing to do with timezones, leap days nor daylight saving time. Honestly, leap days would be worse because they wouldn’t be part of the 7 day week

      • rockSlayer@lemmy.world
        link
        fedilink
        English
        arrow-up
        29
        ·
        edit-2
        3 months ago

        It’s accounted for just like any other leap year, add it to the end of a month as a universal holiday. Most calendar models make it July 29. It’s also worth noting that this is actually 364 days, and a single day at the end of the year is a universal holiday.

        Edit: I think leap years should be at the end of the year too for simplicity.

        • Flipper@feddit.de
          link
          fedilink
          English
          arrow-up
          11
          ·
          3 months ago

          That would just be new year. I’ve already have a list ready for how to name all the months, so we don’t fuck it up like September being the 9. Month again.

        • lugal@sopuli.xyz
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 months ago

          Which breaks “day of week = day modulo 7” if every month starts on Monday and not every month has the same number of days

          • grue@lemmy.world
            link
            fedilink
            English
            arrow-up
            6
            ·
            3 months ago

            Look, short of changing Earth’s orbit, something’s not gonna line up no matter what you do. Extra-weekly days are as good a compromise as any in my book.

            • lugal@sopuli.xyz
              link
              fedilink
              English
              arrow-up
              0
              arrow-down
              3
              ·
              3 months ago

              My point exactly. So the programmer who commented above me is wrong in saying it makes it easier for them

      • MalReynolds@slrpnk.net
        link
        fedilink
        English
        arrow-up
        9
        ·
        3 months ago

        Just make them holidays, everyone works too much anyway, and it’s just getting worse for no reason.

    • Scrubbles@poptalk.scrubbles.tech
      link
      fedilink
      English
      arrow-up
      13
      arrow-down
      2
      ·
      3 months ago

      Developers are the only people against DST changes, just because of how complex it will get. Dear God cities are removing DST! Cities! It means I need to know if you are in or out of a city to know if you need to be shown daylight or standard time!

      Just please do it nationally yes or no

        • ulterno@lemmy.kde.social
          link
          fedilink
          English
          arrow-up
          3
          ·
          3 months ago

          That’s essentially what I did in my recent UI that I made for someone.

          • You want to insert date time
          • Select method: UTC, Time Zone, offset from GMT
          • Enter time
          • I convert it to UTC and send to backend
        • MotoAsh@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          1
          ·
          3 months ago

          That… still requires knowing which time zone to display. It doesn’t remove the requirement at all.

            • MotoAsh@lemmy.world
              link
              fedilink
              English
              arrow-up
              3
              ·
              edit-2
              3 months ago

              and who implements localtime? You realize these functions call down to the system, and the system is very much ALSO written and maintained by coders…

              The point is SOMEONE actually does have to implement it and maintain it.

      • grue@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        3 months ago

        Dear God cities are removing DST! Cities! It means I need to know if you are in or out of a city to know if you need to be shown daylight or standard time!

        That’s why it’s lucky that identifiers in the tz database are already things like America/New_York instead of “eastern time.”

      • Albbi@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 months ago

        Newfoundland has only just over 500k population and has a nice GMT-2:30 time zone. That’s an extra half hour difference. Many cities are larger so I can see them wanting better time for themselves.

    • ben_dover@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 months ago

      thank you for your service, i usually resort to libraries doing the heavy lifting but even then it’s tough and prone to error