Forum Discussion
tommyc
Jun 20, 2019Copper Contributor
Bug: Intl.DateTimeFormat always uses en-US culture
The Intl.DateTimeFormat API does not respect the selected language of the user. It always formats dates according to the en-US culture. In Chrome and Opera, it formats dates according to the language of the user.
- Elliot Kirk
Microsoft
Hi tommyc, I would really like to understand more about this issue. We have a lot of different language settings, and they tend to interact in some interesting ways. Can you please tell me what your browser language settings are?
What is the display language?
What language is at the top of your language list?
What Insider channel and version are you using?
What is your language set to on you operating system?
What operating system and version are you using?
Thank you for answering these questions, the answer will help us greatly in understanding what is going on, and will allow us to address it.
Thanks,
Elliot
- tommycCopper Contributor
My OS is Windows 10 version 1903 build 18362.239.
The region of the OS is set to Belgium, the language is Dutch (Belgium).
I'm currently using Edge Dev version 77.0.235.5, display language is English. The following languages are configured in Settings:
- Dutch
- English (United States)
- English
In the JavaScript console, I get the following behavior:
JavaScript expression Edge Opera/Chrome navigator.languages ["nl", "en-US", "en"] ["nl", "en-US", "en"] Intl.DateTimeFormat([]).format(new Date()) "8/12/2019" "12-8-2019"
- v-gapart
Microsoft
Are your Regional settings set correctly on the computer? Also, is this issue still present?
Gabriel