The date is nicely formatted and shows the day name. I had not seen anything odd on my site, but I just got a comment on my blog letting me know that the date format was Dutch, which is absolutely correct.
I just don't know why, can anybody explain? I can fix it just fine, I just want to know where the language is coming from so I can keep it in mind for the future.
A guess would be that if you haven't set any language/hostnamse inside umbraco, it will use the locale from the servers settings. I've even experienced that it used the language settings from the useraccount running the application pool.
Thanks Morten, excellent stuff, that helped and I didn't have to change the date format :-)
Ron: Yup, that's exactly what it was doing, just didn't know it was doing this by default in LongDate. But it does make sense, Umbraco cannot determine what else should be used of course.
Why are dates in Dutch format?
When I use:
The date is nicely formatted and shows the day name. I had not seen anything odd on my site, but I just got a comment on my blog letting me know that the date format was Dutch, which is absolutely correct.
I just don't know why, can anybody explain? I can fix it just fine, I just want to know where the language is coming from so I can keep it in mind for the future.
Thanks!
A guess would be that if you haven't set any language/hostnamse inside umbraco, it will use the locale from the servers settings. I've even experienced that it used the language settings from the useraccount running the application pool.
Hi Sebastiaan,
The date is formatted using the current culture i suppose
http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.currentculture.aspx
Or do you mean something else?
Ron
Thanks Morten, excellent stuff, that helped and I didn't have to change the date format :-)
Ron: Yup, that's exactly what it was doing, just didn't know it was doing this by default in LongDate. But it does make sense, Umbraco cannot determine what else should be used of course.
You can specify the default using the following:
<configuration> <system.web> <globalization culture="en-US" uiCulture="de-DE" /> </system.web> </configuration>Ron,
In which config file would you place the default globalization values?
Jay,
you should edit the web.config for that.
Note there is allready a globalization-tag, just add culture and uiUlture to it.
HTH,
Peter
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.