News for hackers. Stuff that matters.
Re:Time Zone Bugs I Ran Into by dmm on Friday September 25, 2020 @03:55AM (#24587604)
> So you if you store local times as UTC, you might not get back the correct value when you convert back after a tzinfo update

That shouldn't be a problem for datetimes in the past. tzdata contains not only the current offset but all historical ones as well.

It might be a problem for /future/ datetimes. If I say the meeting is at 1700 America/New_York and the local civil authority changes the offset in the meantime I probably don't want the meeting to move in local time.

Re:Time Zone Bugs I Ran Into by jmiserez on Friday September 25, 2020 @06:39AM (#24588457)
Unfortunately no, it can be a problem even for past dates. The new java.time and old java.util.TimeZone APIs use different offsets for dates < 1990, which resulted in a difference of 6 minutes and 32 seconds for my dates.

I filed a bug (JDK-8214243) but basically it's a known issue and there's no fix.

Re:Time Zone Bugs I Ran Into by CodesInChaos on Friday September 25, 2020 @06:49AM (#24588507)
When migrating from .net's TimeZoneInfo (based on windows timezones) to NodaTime (based on tzdb) we ran into differences in the mid nineties for the German timezone.