Skip to content
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

Invalid timezone #6

Closed
More4ever opened this issue Oct 4, 2021 · 3 comments · Fixed by #12
Closed

Invalid timezone #6

More4ever opened this issue Oct 4, 2021 · 3 comments · Fixed by #12

Comments

@More4ever
Copy link

More4ever commented Oct 4, 2021

Some timezones produce RangeError: Invalid time zone specified

Could you please sync timezones with actual list

https://www.iana.org/time-zones

Example of invalid timezone:

"label":"America/AnguillaSandy Hill (GMT-04:00)",

@LottaLauEtteplan
Copy link

I found two invalid time zones here:
"label":"America/AnguillaSandy Hill (GMT-04:00)"
"label":"Pacific/GuamVillage (GMT+10:00)"

@raphaelpinel
Copy link
Contributor

raphaelpinel commented Jun 15, 2023

Yes, we are getting this error in a React application using timezones-list version 3.02:
RangeError: Invalid time zone specified: America/AnguillaSandy Hill

currently it is:

		"label":"America/AnguillaSandy Hill (GMT-04:00)",
		"tzCode":"America/AnguillaSandy Hill",

it should be:

		"label":"America/Anguilla (GMT-04:00)",
		"tzCode":"America/Anguilla",

And for the other one:
RangeError: Invalid time zone specified: Pacific/GuamVillage

It seems it should be Pacific/Guam instead of Pacific/GuamVillage

I tested that by changing these, the errors don't happen anymore

@raphaelpinel
Copy link
Contributor

@omsrivastava thanks for merging. But why is there not a new package version on npm? Did the pipeline fail? Could you please check? Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants