• aubertlone@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      11 months ago

      I mean wouldn’t any sensible developer just use one of the many npm packages that do count down from UTC?

      Which would also be using JavaScript?

      Sorry I don’t mean to quibble it’s just that imo JavaScript has nothing to do with this faulty countdown, it has to do with the developer overlooking edge cases.

        • aubertlone@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          11 months ago

          I have seen this episode.

          That is EXACTLY why I don’t understand why someone wouldn’t just use an NPM package that already has all that stuff sorted out. Could you imagine trying to code to deal with different time zones?

          Forget about it.

      • 4am@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        11 months ago

        Wouldn’t those also reflect an error in the local system clock if it was not set correctly?