4 ms·
If you're handling timezones, and you're not using tz files, you deserve any pain heading your way. Timezone rules change constantly and trying to roll your ow
by jpatokal 8y ago
If you're handling timezones, and you're not using tz files, you deserve any pain heading your way. Timezone rules change constantly and trying to roll your own is disastrous. (And I say that in the grave baritone voice of personal experience.)
https://en.wikipedia.org/wiki/Tz_database https://en.wikipedia.org/wiki/Tz_database
- lgeorget 8y agoTz is great indeed but what if you have to interface with code/devices not using it and relying on a static timezone database ?
- scbrg 8y agoWell, the only workable solution for those is to never change any timezone again ever. According to the changelog of tzdata on my system any such device/code older than four months is fucked already. I'm not sure it's reasonable to expect society to freeze because "assumptions in legacy code".
- 0x0 8y agoObviously! But that doesn't help users of legacy systems!