Re:EU to stop changing the clocks in 2019
by jpatokal on Monday September 17, 2018 @04:25PM
(#18009716)
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.)
Re:EU to stop changing the clocks in 2019
by lgeorget on Monday September 17, 2018 @04:39PM
(#18009862)
Tz is great indeed but what if you have to interface with code/devices not using it and relying on a static timezone database ?
Re:EU to stop changing the clocks in 2019
by scbrg on Tuesday September 18, 2018 @07:21AM
(#18014229)
Well, 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".
Obviously! But that doesn't help users of legacy systems!
Re:EU to stop changing the clocks in 2019
by lgeorget on Monday September 17, 2018 @04:37PM
(#18009840)
Not 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...
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.