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

Timezone name for India is not correct #23

Open
JagdishUpadhyay opened this issue Apr 25, 2019 · 2 comments
Open

Timezone name for India is not correct #23

JagdishUpadhyay opened this issue Apr 25, 2019 · 2 comments

Comments

@JagdishUpadhyay
Copy link

Hi

Thanks for this awesome library. However I am facing an minor issue related with India timezone. If we use jstz.determine().name() to detect user current timezone it is returning "Asia/Calcutta", which is correct. However if we use jstz.olson.timezones to fetch all time zones, the timezone for India is named as "Asia/Kolkata". It seems that there are mismatch between these two functions.

@nadelicious
Copy link

nadelicious commented Oct 17, 2019

@JagdishUpadhyay The "Asia/Calcutta" time zone has been deemed obsolete. It has been replaced by "Asia/Kolkata".

http://www.timezoneconverter.com/cgi-bin/zoneinfo.tzc?s=default&tz=Asia/Calcutta

@mcleanmds
Copy link

Also to note:
Blink/V8 browsers (e.g. Chrome/Edge-chromium) appear to still be affected by a related bug in their I18N implementation (raised 2016):
https://bugs.chromium.org/p/chromium/issues/detail?id=580195

This impacts what is returned by Intl.DateTimeFormat().resolvedOptions().timeZone as used in get_from_internationalization_api

This doesn't affect FireFox as their JS engine I18N implementation returns the correct string.

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

No branches or pull requests

3 participants