Intl.DateTimeFormat returns wrong month name for "kk" locale
Reported by
m...@bookmate.com,
Aug 16 2017
|
||||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36
Steps to reproduce the problem:
new Intl.DateTimeFormat('kk', { day: 'numeric', month: 'long' }).format(Date.now())
What is the expected behavior?
The code returns "M08 16" which is an incorrectly formatted date.
What went wrong?
The code returns "16 тамыз" (the correct formatted date for today).
Did this work before? No
Does this work in other browsers? Yes
Chrome version: 60.0.3112.101 Channel: stable
OS Version: OS X 10.12.5
Flash Version:
,
Aug 16 2017
,
Aug 17 2017
Unable to reproduce this issue on Mac OS 10.12.6 using chrome latest stable #60.0.3112.101. By entering "new Intl.DateTimeFormat('kk', { day: 'numeric', month: 'long' }).format(Date.now())" in console it displays M08 17 as expected.
Reporter@ My current system locale is EN. Could you please confirm your default system locale for further investigation?
Thanks!
,
Aug 17 2017
I messed up the messages in "went wrong" and "expected" fields, sorry. The code "new Intl.DateTimeFormat('kk', { day: 'numeric', month: 'long' }).format(Date.now())" should return "17 тамыз" today, not "M08 17". And it returns this string in Safari, Fx and Edge, but not in Chrome.
,
Aug 17 2017
My system locale in EN.
,
Aug 28 2017
,
Aug 28
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Aug 28
I can still repro this in M68. Jungshik -- is this because of missing locale data? |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by m...@bookmate.com
, Aug 16 2017