this post was submitted on 08 Jul 2024
686 points (98.4% liked)

Programmer Humor

18958 readers
1059 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
 

Template

Further reading: RFC 3339 / ISO 8601

you are viewing a single comment's thread
view the rest of the comments
[โ€“] akincisor 23 points 1 month ago (8 children)

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.

[โ€“] [email protected] 1 points 1 month ago

So many things would be fucked by a TZ change that it very rarely makes sense to consider it.

You're making a calendar app? Fuck it...some folks are gonna get confused...solved by simply emailing your users and telling them to reschedule shit because there's kind of a big event going on that everyone knows about and has been planning for for years. Hell in all liklihood this is probably easily solved by simply doing a mass migration of events scheduled before the TZ change.

You're coding for nuclear weapons? Maybe consider it. But probably not.

That is to say: there are ways to solve problems without resorting to writing the most complicated bullshit code ever seen. Unless of course you work on my team - in which case you'd be right at home.

load more comments (7 replies)