jstz icon indicating copy to clipboard operation
jstz copied to clipboard

Timezone name for India is not correct

Open JagdishUpadhyay opened this issue 5 years ago • 2 comments

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.

JagdishUpadhyay avatar Apr 25 '19 11:04 JagdishUpadhyay

@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

nadelicious avatar Oct 17 '19 10:10 nadelicious

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.

mcleanmds avatar Apr 11 '20 02:04 mcleanmds