Closed Bug 1463583 Opened 8 years ago Closed 7 years ago

Intl.DateTimeFormat issue with locale fr-CA

Categories

(Core :: JavaScript: Internationalization API, defect)

60 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: eschiebel, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36 Steps to reproduce: new window.Intl.DateTimeFormat(['fr-CA'], {timeZone: 'America/New_York', hour: 'numeric', minute: 'numeric'}).format(new Date('2018-05-22T21:23:40.575Z'));   Actual results: returned "17 h 23" Expected results: return "17:23" Interesting, Firefox and Chrome return "17 h 23", though Safari and Edge return "17:23" One of you has to be wrong, and I'm sorry, but I think it's you.
The error comes from CLDR and ICU https://www.unicode.org/cldr/charts/33/by_type/date_&_time.generic.html#4f4895c28b605986 From their index > Data that is unconfirmed or provisional is marked by a red-italic locale identifier, such as ·bn_BD·. CLDR survey tool is closed right now, but there's not much that can be done to solve this on Firefox side.
> Interesting, Firefox and Chrome return "17 h 23", though Safari and Edge return "17:23" One of you has to be wrong, and I'm sorry, but I think it's you. I don't think anyone has to be wrong. Intl API is the "best effort" approach that will return the best possible localized format. It may and will differ between browsers, versions of browsers and environments. You should never, ever, expect a specific string out of the Intl formatter as they use different underlying databases and may use different versions of those databases while the data on cultural formats change over time. Saying that, if you believe that "17 h 23" is wrong, we should file it for review in CLDR.
Component: Untriaged → JavaScript: Internationalization API
Product: Firefox → Core

I agree with comment 2.

We use this format because Unicode's CLDR tables (which we use, indirectly, because we use the ICU library) claim this is how French Canadians like for the time to be formatted!

Since this was filed, a year ago, Unicode has released two major updates to CLDR. This particular time format is still in the file, and it is no longer marked as "unconfirmed or provisional".

Marking this "RESOLVED INVALID", which just means there's apparently no bug in Firefox. If you're French Canadian and this "17 h 23" format seems clearly wrong, let us know, and let's get it filed as an issue with the Unicode CLDR folks.

Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.