4 ms·
When timezone for a city changes and you store time with timezone name/offset, you won't know. If you store time with location, you are one update of tzdata awa
by rini17 5y ago
When timezone for a city changes and you store time with timezone name/offset, you won't know. If you store time with location, you are one update of tzdata away from automatically solving the problem.
- mark-r 5y agoExcept that tzdata doesn't store offset rules for every city. You still need to know which city represents your location, which is just as arbitrary as some random timezone code. Every once in a while zone boundaries or local zone rules change, so what was once your reference city is obsolete.
- rini17 5y agoSure, not in tzdata, but data as which county is under which timezone certainly must exist somewhere. All I ask to people whom it concerns to sit down and thoughtfully agree how to process location-based local time. Yes storing time like "2021-11-01 10:00 Europe/Warsaw/Łękołody/Chrząszczyrzewoszyce/" souds absurd...but such absurdities have the uncanny tendency to come true and it's good if someone preemptively tries to clear things up.