• Daxtron2@startrek.website
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    Store times in UTC, convert in UI to locale’s timezone with one of any of the millions of timezone libraries. If you’re storing in local time, you’re gonna have a bad time.

    • Phrodo_00@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      It depends. If something needs to happen in local time (like, always at the same time regardless of daylights savings for example) you should be storing times in local timezone