696

Template

Further reading: RFC 3339 / ISO 8601

you are viewing a single comment's thread
view the rest of the comments
[-] akincisor@sh.itjust.works 23 points 2 months ago

There is one big caveat to universal time:

Future dates: If you use utc here and a time zone definition changes, you're boned. You have to store local time and offset for just this one usecase.

[-] carrylex@lemmy.world 4 points 2 months ago

If you use utc here and a time zone definition changes, you’re boned

I'm pretty sure that things like the tz database exist exactly for such a case.

[-] booly@sh.itjust.works 2 points 2 months ago

The TZ database doesn't tell us what the offsets will be in the future. Only the past.

load more comments (6 replies)
this post was submitted on 08 Jul 2024
696 points (98.5% liked)

Programmer Humor

19197 readers
895 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS