-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Incorrect abbreviation and alternativeName? #287
Comments
@marcoancona did you find an answer by now? Or an alternative solution? |
Any news about this issue, It makes us add tailor-made solution and we would love for this to be supported in the library, |
Kinda insane how hard it is to get correct list of timezones. Been looking for hours and every library has some kind of issues. |
So, i made a quick fix for myself that works for the most part.
Basically the issue is that the generate logic uses a hardcoded January date for everything(https://github.com/vvo/tzdb/blob/main/generate.js#L228). So it's always in winter time. The not so nice thing about this is that it needs to rerun and recalculate over 300 items every time unless you cache it somewhere. If anyone wants to actually make a PR or a forked project based on this, it would be great.(if no one picks it up, I might do it myself after a month or two) So generate the names on both dates, make the |
How is the mapping IANA -> abbreviation built? Let's take
Europe/London
as an example:Europe/London is equivalent to Greenwich Mean Time (GMT) only in Winter. In summer, shouldn't it be British Summer Time (BST)?
GMT has a fixed offset, so what is the meaning of
+01:00 Greenwich Mean Time
?The text was updated successfully, but these errors were encountered: