You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ususally we'll query historical speeds by UTC time, but the data of historical speeds are local time. This issue is target to solve this issue: either convert UTC to localtime when querying or pre-offset the data in memory by timezone when loading.
The daylight_saving is more complex, which may have to be done when query.
It’s a open standard and uses widely. Also, it’s very easy to handle by many different languages/libraries(https://en.wikipedia.org/wiki/Tz_database#Use_in_software_systems).
I have had a quick try on both Golang and Python, both of them can convert time to another timezone by one line.
Here’s some code snippet by Python:
After internal discussion, unidb will provide the tz_database_name too to easy the converting, then caller don't need to handle the daylight saving details. This task will be postponed until the tz_database_name provided.
Since there's almost no timezone data in OSM(only hundreds in Global, which is too less), I think support it for OSM now is meaningless. I'd like to close this issue and move the unidb timezone support into internal development.
We may come up this issue again once OSM provides sufficient timezone information.
Ususally we'll query historical speeds by UTC time, but the data of historical speeds are local time. This issue is target to solve this issue: either convert UTC to localtime when querying or pre-offset the data in memory by timezone when loading.
The daylight_saving is more complex, which may have to be done when query.
This a subtask of #150.
The text was updated successfully, but these errors were encountered: