5 ms·
There's tons of legacy timezone pickers that bundle together cities like Amsterdam, Berlin, Brussels, etc etc... Often, users in smaller countries have to pick
by 0x0 8y ago
There's tons of legacy timezone pickers that bundle together cities like Amsterdam, Berlin, Brussels, etc etc... Often, users in smaller countries have to pick a neighboring country's capital city since their own is not listed.
I really hope countries who are currently sharing a time zone don't split ways, or computer clocks and calendars will be doomed to be "maybe off by one hour?" for a decade at least.
- jpatokal 8y agoIf 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!
- lgeorget 8y agoNot to mention not really cleverly designed connected devices. I work with connected meteorological stations which use the local timezone where the station is installed instead of UTC to label their records...