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

countries() returns no results for 'America/Cordoba' #821

Closed
maxhawkins opened this issue Feb 28, 2020 · 1 comment
Closed

countries() returns no results for 'America/Cordoba' #821

maxhawkins opened this issue Feb 28, 2020 · 1 comment
Labels

Comments

@maxhawkins
Copy link

While testing different time zones, I found an issue with the "America/Cordoba" zone and the countries() method.

moment.tz.guess() returned "America/Cordoba", which is in Argentina. However:

moment.tz.zone("America/Cordoba").countries() === []
@ichernev
Copy link
Contributor

		test.deepEqual(tz.zone('America/Argentina/Cordoba').countries(), ["AR"]);
		test.deepEqual(tz.zone('America/Cordoba').countries(), []);

This is because America/Cordoba is deprecated in favor of America/Argentina/Cordoba and some browsers (via Intl) return the deprecated timezone.

Close in favor of #873

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

No branches or pull requests

3 participants