New issue
Advanced search Search tips

Issue 645807 link

Starred by 7 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug

Blocked on:
issue v8:8007



Sign in to add a comment

Canonicalized timezone name in date-time output is not up to date for a few timezones (e.g. Asia/Kathmandu)

Reported by szepie...@logicart.pl, Sep 11 2016

Issue description

Chrome Version       : 9115ecad1cae66fd5fe52bd9120af643384fd6f3-refs/branch-heads/2743@{#728}
URLs (if applicable) :
Other browsers tested:
  Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
     Safari: N/A
    Firefox: OK
         IE: N/A

What steps will reproduce the problem?
(1) Set your locale to Kathmandu Nepal
(2) Run following code in JS console Intl.DateTimeFormat().resolvedOptions().timeZone
(3) The result is: "Asia/Katmandu" and should be "Asia/Kathmandu" 

What is the expected result?


What happens instead?


Please provide any additional information below. Attach a screenshot if
possible.

 
Components: UI>Localization
Labels: -Pri-3 M-55 OS-Linux OS-Mac OS-Windows Pri-2
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on Windows 10, Ubuntu 14.04, MAC OS 10.11.6 using chrome reported version #52.0.2743.116, latest stable #53.0.2785.101 and latest canary #55.0.2858.0.

This is a non-regression issue as it is repro on M-35 version #35.0.1849.0 also.

Attaching a screencast for reference

Hence, changing the status to untriaged.
645807.mp4
508 KB View Download
Owner: js...@chromium.org
Status: Assigned (was: Untriaged)
I think *maybe* this is caused by stale ICU data files? Over to jshin@ for a look.
Not sure if it helps, here: https://cs.chromium.org/chromium/build/third_party/pytz/zoneinfo/Asia/?sq=package:chromium

I found that sources contains both names: Katmnadu and Kathmandu. 
Similar issue you can experience with Macao / Macau

screen.jpg
208 KB View Download

Comment 4 by js...@chromium.org, Sep 14 2016

Components: -UI>Localization Blink>JavaScript>Internationalization
Summary: Canonicalized timezone name in date-time output is not up to date for a few timezones (e.g. Asia/Kathmandu) (was: Wrong name of city in Asia/Kathmandu timezone)
It's due to the way ICU canonicalizes the timezone name. See 
http://www.icu-project.org/trac/ticket/12044

If the upstream does not fix it in upcoming release (58.x), I'll see what I can do locally. It's not just Kathmandu as seen in the ICU ticket above.

Comment 5 by js...@chromium.org, Oct 11 2016

It's a bit more complicated.
 
Occasionally, IETF timezone database changes what is canonical among multiple names for a single timezone, but CLDR (that ICU uses) keeps a stable canonical timezone id for a given time zone. 

However, Asia/Saigon and Asia/Katmandu were deprecated in 1993 (before the CLDR started, I guess). So, I don't know why CLDR has the deprecated names as canonical. I'm waiting for a response from ICU/CLDR folks. 


Comment 6 by js...@chromium.org, May 26 2017

Status: ExternalDependency (was: Assigned)
http://unicode.org/cldr/trac/ticket/9892 is where this issue has to be dealt with. 
Status: Assigned (was: ExternalDependency)
https://dxr.mozilla.org/mozilla-central/source/js/src/builtin/intl/TimeZoneDataGenerated.h  lists a lot longer list of the difference between ICU/CLDR and IANA. 

I think we have to handle them on v8's end ourselves because

1) CLDR may not want to change their timezone ids (for stability reasons). Despite that, ICU can override CLDR, but not sure if ICU is willing to. 
2) Even if they're willing to, it'll take a while. 
Blockedon: v8:8007
BTW, there are other ids with this issue: e.g.  Calcutta vs Kolkata
Cc: susan.boorgula@chromium.org
 Issue 889917  has been merged into this issue.

Sign in to add a comment