Dear God cities are removing DST! Cities! It means I need to know if you are in or out of a city to know if you need to be shown daylight or standard time!
That’s why it’s lucky that identifiers in the tz database are already things like America/New_York
instead of “eastern time.”
ryannathans@aussie.zone 7 months ago
Write everything in UTC, cast to local time zone for UIs
Life problems solved
ulterno@lemmy.kde.social 7 months ago
That’s essentially what I did in my recent UI that I made for someone.
MotoAsh@lemmy.world 7 months ago
That… still requires knowing which time zone to display. It doesn’t remove the requirement at all.
ryannathans@aussie.zone 7 months ago
.localtime(utctime)
MotoAsh@lemmy.world 7 months ago
and who implements localtime? You realize these functions call down to the system, and the system is very much ALSO written and maintained by coders…