3 ms·
How do other languages handle this? Do they take the timezones database from the OS, which keeps it updated?
by mjcurl 2y ago
How do other languages handle this? Do they take the timezones database from the OS, which keeps it updated?
- kstrauser 2y agoI think that'd be the worst place to take it from for the same reason. If I build a package using today's current TZ database and it works on my machine, it shouldn't stop working if I share it with someone using an old CentOS from several years ago.
- mjcurl 2y agoYou're right. But then tz updates would need a patch.
- kstrauser 2y agoTrue, but it’s generally a lot easier to patch software than expect someone to update their whole OS. (Generally. I know plenty of shops deployed Exchange in 2009 and it still works so why fix it, goshdarnit! Those people aren’t generally updating their OS either though.)
- a57721 2y agoIn Java, there is a bundled 'tz' file. It gets updated frequently, here's an example: https://bugs.openjdk.org/browse/JDK-8325150 https://bugs.openjdk.org/browse/JDK-8325150 It is possible to update it manually.