Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Incorrect narrow weekday names #92

Closed
kate2753 opened this issue Apr 21, 2015 · 0 comments · Fixed by #93
Closed

Incorrect narrow weekday names #92

kate2753 opened this issue Apr 21, 2015 · 0 comments · Fixed by #93

Comments

@kate2753
Copy link
Collaborator

Intl.js polyfill is not using correct values for narrow weekday names.

For example (if [ '', 'yMMMEEEEEd' ] format with narrow weekday is added to the Ldml2Json.js tool) Intl.js polyfill's output for

for(var day = 0; day < 7; day ++) {
        console.log((new Intl.DateTimeFormat('da-u-nu-latn-ca-gregory', {
            weekday: "narrow",
            day: "numeric",
            month: "short",
            year: "numeric"
        })).format(new Date(2015, 2, day)));
    }

is

lø 28. feb. 2015
sø 1. mar. 2015
ma 2. mar. 2015
ti 3. mar. 2015
on 4. mar. 2015
to 5. mar. 2015
fr 6. mar. 2015 

While Chrome 42 and Firefox 37 both output:

L 28. feb. 2015
S 1. mar. 2015
M 2. mar. 2015
T 3. mar. 2015
O 4. mar. 2015
T 5. mar. 2015
F 6. mar. 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant