"F14" is a poor choice when displaying "fractionalSecondDigits" through <appendItem> replacement pattern

Description

"F14" doesn't seem like a descriptive output for users when displaying fractional second digits in the replacement pattern.

With the proposed ECMA-402 PR <https://github.com/tc39/ecma402/pull/347>:

because ICU returns the best match pattern "m ├'F14': SSS┤" for the skeleton "mSSS".


(Setting the "ecmascript" and "ecma402" labels, because it affects <https://github.com/tc39/ecma402/pull/347>.)

Activity

Show:
Frank Yung-Fong Tang
February 29, 2020, 3:59 AM

icu4c/source/data/locales/root.txt is generated from CLDR. I don’t think we can simply patch it inside ICU.

Shane Carr
February 27, 2020, 2:14 AM

What probably happened here is that Mihai’s fix works for minute + factional second, but not hour + fractional second.

I filed to follow up with a more general fix.

André Bargull
February 24, 2020, 6:12 PM

Just for reference, here’s a simple patch to workaround these missing display name issues: https://gist.github.com/anba/5813c6c87b992a2c9b9eabe84c09e5dd

 

André Bargull
February 24, 2020, 5:29 PM

Re-opening because the issue is still present in ICU 67 (current master branch from GitHub). For example:

new Intl.DateTimeFormat("af", {hour: "2-digit", fractionalSecondDigits: 3}).format(new Date("2019-01-01T00:01:00.123"))

still prints “00 ├F14: 123┤” for me.

 

Mihai Nita
November 20, 2019, 5:29 PM

I can’t do anything myself, I get “You don’t have permission to transition this issue”

Fixed

Assignee

Mihai Nita

Reporter

André Bargull

Components

Labels

Priority

major

Time Needed

Hours

Fix versions