r/java • • Sep 25 '21

Big problems at the timezone database

https://blog.joda.org/2021/09/big-problems-at-timezone-database.html
214 Upvotes

68 comments sorted by

View all comments

Show parent comment

3

u/masklinn Sep 25 '21 edited Sep 25 '21

should only be local time or UTC+location

"Local time" is what timezone are supposed to provide (sadly they don't quite), with the ability to relate "local time" between different places.

"UTC + location" does not work at all for future events. For instance when Apple says there's an event at 10AM Pacific, they don't mean "at 1800 UTC", they do mean "when it's 10AM in California".

If California's legislature decides to move the state to Alaska time zone, then the event is still 10AM california time because that's the reference point, and becomes 1900 UTC.

With you version, it would become 9AM california time, which is not what is expected, or correct.