Intl.DateTimeFormat().format() uses wrong format for hy locale
Reported by
saroy...@gmail.com,
May 13 2018
|
||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
Steps to reproduce the problem:
1. Consider command: `new Intl.DateTimeFormat('hy').format(new Date(2018, 10, 12))`
2. Run The command in Chrome
3. Run same command in Firefox
What is the expected behavior?
Firefox and Chrome both return DD.MM.YYYY format.
What went wrong?
Chrome returns 2018-11-12(YYYY-MM-DD) format, which is for me(Armenian) very unintuitive(I used to any combination of DMY).
According to [wikipedia](https://en.wikipedia.org/wiki/Date_format_by_country ) It's more common to use DMY format(I know it's unofficial).
I did check both official [Prime minister](http://www.primeminister.am/) and [President](http://www.president.am/) websites and both are using DD.MM.YYYY
So I think Chrome also should return DD.MM.YYYY
Did this work before? N/A
Does this work in other browsers? Yes
Chrome version: 66.0.3359.139 Channel: stable
OS Version: OS X 10.13.4
Flash Version:
I'm preparing a presentation which will also be localized for Armenia. But apparently I can not yet suggest to the Armenian audience to rely on Intl yet completely.
Relevant slide -> https://cmints.io/en/presentation#/date
,
May 14 2018
,
May 14 2018
Able to reproduce the issue on chrome reported version 66.0.3359.139 and latest stable 66.0.3359.170 using Mac 10.12.6, Windows-10 and Ubuntu 14.04, same issue is seen on latest chrome# 68.0.3430.0. Hence considering this issue as Non-Regression and marking it as untriaged. Thanks!
,
May 23 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by saroy...@gmail.com
, May 13 2018