3 ms·
> the timezone of the place It's not always unique. For example, Xinjiang uses both UTC+8 (Beijing time) and UTC+6 (Xinjiang Time), depending on context. https
by progval 5y ago
> the timezone of the place
It's not always unique. For example, Xinjiang uses both UTC+8 (Beijing time) and UTC+6 (Xinjiang Time), depending on context. https://en.wikipedia.org/wiki/Xinjiang_Time https://en.wikipedia.org/wiki/Xinjiang_Time
Even when unique, it can be hard to automatically find it. The US and Canada typically have timezones that don't exactly follow state/province borders (or even county borders). https://en.wikipedia.org/wiki/Time_in_the_United_States#Boundaries_between_the_zones https://en.wikipedia.org/wiki/Time_in_the_United_States#Boun...
- marcosdumay 5y agoWell, the rule to follow when you can't discover something by yourself is: ask the user. And for most things, even if you can discover it, let the user override your guess.
- hackernewds 5y agoThat just means your data should have more context than Xinjiang. This is like saying the continent of Europe doesnt use the same tz, since the geo data logged is only in "continent" units