• Chocrates@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          arrow-down
          1
          ·
          1 year ago

          Yeah… I am stoned but this looks like it should be valid and there is just a bug in the code.

          • dukk@programming.dev
            link
            fedilink
            English
            arrow-up
            6
            ·
            1 year ago

            I’m guessing the UI designer accidentally put in DD/MM/YY, when the code handles the date as MM/DD/YY.

            • timkenhan
              link
              fedilink
              English
              arrow-up
              10
              ·
              1 year ago

              Sometimes if the developers don’t specify, the date format can follow clients’ settings, which can lead to unpredictable results like this.

              • dukk@programming.dev
                link
                fedilink
                English
                arrow-up
                2
                ·
                1 year ago

                Yeah, I’d imagine you’d want to adapt for different locales. Here in the US, MMDDYY is pretty ubiquitous, but I’m sure it’s different in other countries.

                • timkenhan
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  1 year ago

                  I’ve experienced this kind of confusion first hand, so I know a thing or two.

      • JoBo@feddit.uk
        link
        fedilink
        English
        arrow-up
        19
        ·
        1 year ago

        95% of people are not USian and also, can read the requested date format correctly.

      • 0x2d@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        tell me you are from the US without telling me you are from the US