Missing de-DE locale in integration script

I’m on writing an integrations script (Integrations WebHooks - Rocket.Chat Docs). The incoming request contains a date like 2021-04-22T13:23:54.142062711Z which I want to display in de-DE locale date fomat. But unfortunately this locale seems not be available.

date.toLocaleString("de-DE", {timeStyle: "medium", dateStyle: "short"})

gives just: 2021-04-22 15:23:54 instead the exepected: 22.04.2021 15:23:54

Any suggestions?

The server runs:
Rocket.Chat Version: 3.12.1
NodeJS Version: 12.18.4 - x64

Hi.

First thing when debugging is always test on latest.

Rocket moves fast. Your issue may be fixed. If it isn’t then any fix that is created won’t make it to your version.

Not sure Rocket where would do it’s locale work.

Clearly being formatted somewhere.

What if you use a different date format to start with as a test?

What about the locale of the ‘User’?

I can only work with the server version which is available for me.
My users locale is set to “Germany” in the Rocketchat client.

The shown time format has switched to : 4/27/21, 9:08:54 AM one morning - all but not de-DE :frowning:

I don’t know if it’s a bug or if I’m doing some wrong - so I ask here.

I can only work with the server version which is available for me.

OK - but if there is an issue then it will not get fixed on your version.

My users locale is set to “Germany” in the Rocketchat client.

You probably want to test this just in a browser so you can eliminate the client.

The shown time format has switched to : 4/27/21, 9:08:54 AM one morning - all but not de-DE

But this was not where we started? You asked about a webhook?

Can you go back to the start and explain exactly what you are trying to do here?