Strange DateTime Behavior

Hi,

I moved our umbraco Page to a new Server (from 2016 to 2019).
No, when I call a function in C# Controller code like:
DateTime.Now.ToString() - I get the english format version of the date (e.g . 01/01/2020)
Before, the output was 01.01.2020.
I setup culture to German in the web.config and most curious about that: in razor, the exact same code as in my C# Controller, renders the Date-String in German.
I checked the language of Windows Server 2019, it is also set to German.
Only workarround so far is to hand over the culture-Info to the ToString() Version. But I would prefer, that it render the String by Default in the German format.
Any idea about this issue?

Thanks a lot for sharing your ideas.

Tom


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/102715-strange-datetime-behavior