Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
The only things I can think of are the "Region and Language Options" on the server - you can specify the date format there... or the domain and hostnames in Umbraco might be set to en-US?
Both is set to de-DE / German. :-(
Ok, this link give me the hint:
You really have to set not only the region to German, you also have to copy that to all users and the "welcome page" of windows server. After restart, all works fine now.
Urgh!! Glad you've found a fix but some of the UX changes to Windows 10 / Server have been an absolute cludge.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted