i've got an globalization setting in the web.config like this:
<globalization culture="de-DE" uiCulture="de-DE" />
and on an average aspx page i output sth. like:
var a = DateTime.UtcNow.ToLocalTime().ToString();
var b = DateTime.UtcNow.ToString();
var c = DateTime.Now.ToLocalTime().ToString();
var d = TimeZone.CurrentTimeZone.ToLocalTime(DateTime.UtcNow).ToString();
Result: The values of a,b,c,d are ALL identical ( e.g. 01.01.2001 17:00:00 ), when i would expect the local and UTC times to be different.
What am i missing here and how can i get the correct localtime from a UTC date.. i checked other topics already, but it didn't work..