Bug: Intl.DateTimeFormat always uses en-US culture

Copper Contributor

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.

3 Replies

@tommyc 

 

Are your Regional settings set correctly on the computer? Also, is this issue still present?

 

Gabriel

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

@Elliot Kirk 

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:

  1. Dutch
  2. English (United States)
  3. English

In the JavaScript console, I get the following behavior:

JavaScript expressionEdgeOpera/Chrome
navigator.languages["nl", "en-US", "en"]["nl", "en-US", "en"]
Intl.DateTimeFormat([]).format(new Date())"8/12/2019""12-8-2019"