• 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.