1024
ISO 8601 (slrpnk.net)
you are viewing a single comment's thread
view the rest of the comments
[-] arc@lemm.ee 30 points 13 hours ago

The sane way of dealing with it is to use UTC everywhere internally and push local time and local formatting up to the user facing bits. And if you move time around as a string (e.g. JSON) then use ISO 8601 since most languages have time / cron APIs that can process it. Often doesn't happen that way though...

[-] expr@programming.dev 7 points 11 hours ago

Generally yes, that's the way to do it, but there are plenty of times where you need to recreate the time zone something was created for, which means additionally storing the time zone information.

[-] hazypenguin@feddit.nl 4 points 11 hours ago

Definitely. If your servers aren't using UTC, then when you're trying to sync data between different timezones, you're making it harder for yourself.

[-] Hexarei@programming.dev 3 points 11 hours ago

This is what I try to do in the few apps I've written that had to deal with dates and times

[-] easily3667@lemmus.org 4 points 12 hours ago
[-] okamiueru@lemmy.world 9 points 12 hours ago

I think you skipped part of the sentence.

this post was submitted on 01 May 2025
1024 points (100.0% liked)

Comic Strips

16298 readers
2115 users here now

Comic Strips is a community for those who love comic stories.

The rules are simple:

Web of links

founded 2 years ago
MODERATORS