News for hackers. Stuff that matters.
Re:RFC 3339 vs. ISO 8601 by 8n4vidtmkvmk on Thursday August 31, 2023 @09:36PM (#37345770)
How is it not precisely defined? Lat/long to timezone ought to work... timezones have precise boundaries that cover the whole earth, no?
Re:RFC 3339 vs. ISO 8601 by defrost on Thursday August 31, 2023 @09:55PM (#37345882)
A triple (Lat/Lon/UTC Date) <-> TimeZone at the very least.

Time zones are political | * social* especially in the twilight zone between two otherwise well defined zones.

If a country is mostly in TimeZone X then often an extrusion that goes well into TimeZone Y will remain with clocks aligned to TZ-X unless some local political change is made (to be more or less sensible).

See (current TimeZone Map):

https://www.timeanddate.com/time/map/

and note that cities have changed time zones (not daylight savings changes, actual changes to core time zone) in the past and will almostly certainly do so again in the future.

Re:RFC 3339 vs. ISO 8601 by erhaetherth on Friday September 01, 2023 @12:18PM (#37352773)
The changing of zones isn't a problem, that's why we're using lat/lon, but if the nearby countries can't agree on what time it is...that's an issue.
Re:RFC 3339 vs. ISO 8601 by mceachen on Thursday August 31, 2023 @11:34PM (#37346520)
I maintain https://github.com/photostructure/tz-lookup which does this task.

*Every single time* I update the tz source file some arbitrary set of zone names and offsets change. Look at the churn and enjoy the schadenfreude: https://github.com/photostructure/tz-lookup/commits/main/tes...

Re:RFC 3339 vs. ISO 8601 by aidenn0 on Friday September 01, 2023 @01:47AM (#37347270)
> timezones have precise boundaries that cover the whole earth, no?

Not only is that not true, but there are places on the earth where one country may think the timezone is X, but in another country it is illegal to claim that the timezone is X.

This happens most notably with China, which defines the entire country to be in a single timezone, and is engaged in multiple border disputes.

Re:RFC 3339 vs. ISO 8601 by c4mpute on Friday September 01, 2023 @06:54AM (#37349110)
Similarly for many disputed territories in Antarctica, with the added fun of "the south pole region is special". But of course that is a very marginal topic.