-
Notifications
You must be signed in to change notification settings - Fork 684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TZDB shapefile is out of date #3817
Comments
@ianthetechie this is a great question!
long story short, i am not opposed to updating to newer data but we need to do the work of making sure the same indices are used for the same semantic timezones. eg. maybe there are new ones, these would have to go on the end. maybe names have changed we would then have to update the aliases. i havent worked out all the details and maybe its less tedious than i am imagining but we need to proceed cautiously to avoid breaking backward/forward compatibility. in other words, when we make a chance we either have to do one of two things:
I guess you probably realized we are trying very very hard not to do the latter until we have sufficiently many important breaking changes as to warrant it. |
This has gotten some new traction, see #4363. That's pretty bad, apart from the changes in geometry (not too little in the US, I visually compared the two releases), DST is probably the worst affected. I looked into it for a bit and this is my summary of the process:
As @kevinkreiser said, it's not super straight forward. While I think the aliases are fairly easy to deal with or will be dealt with implicitly, coming up with (ideally):
|
Not a very thought-through idea:
So 2. is a bit of work & diving into the diff of 2017 tz's & the latest release. A bit tedious, but still pretty manageable. Most of that will have to be repeated every time we update the tzdata release, it'll never be a single line change. We'll have to live with that until a major version update, so best this is neatly documented by whoever ends up doing this chore. I'll update here if that should be me:) Please tell me if there's any misunderstandings or so.. |
Can someone explain what the motivation was behind the aliases? It can't be mismatch between the shapefile and IANA data I'd hope, so maybe it's just an opinionated list for deduplication? Or how did you decide which timezone to alias to others? It seems a lot of the names which should be aliased don't even exist in the shapefile (e.g. all the UTC ones), so likely the aliases come from somewhere else? |
In fact, the vast majority of the aliases doesn't exist in the shapefile. Unless I'm missing some other part where those are used (doubt it though), that could be cleaned as part of the effort as well. |
I'll keep this as a log of thoughts that occur. I'll aim for a more fleshed out implementation suggestion before starting the job, so this is more a log to keep things in one place. before even updating any data, we could try to remove our hard-coded list of aliases and instead use what
the IANA data has |
Hey guys,
I noticed that the TZDB shapefile is now pretty far out of date. I thought updating this would be straightforward, but looking at the script I'm seeing what appears to be a set of manually defined aliases. This raised a few questions.
USE_SYSTEM_TZ_DB
CMAKE option as well that's disabled by default, but wasn't sure how/if it related to this. Obviously the point of the sqlite tzdb is to determine which timezone a point is located in. I would assume system functions handle the rest, since this is basically just a shapefile and not the whole tzdb ruleset.TL;DR any gotchas just doing an update to
2022f
?The text was updated successfully, but these errors were encountered: