DNN7 > User Profile > Time Zone
Last Post 07/20/2014 10:34 AM by Joseph Craig. 2 Replies.
Author Messages
kaushal
Nuke Ace
Nuke Ace
Posts:42


--
07/19/2014 1:05 AM  
Inside, the user profile, I am trying to change my time zone to something else (say, UTC + 1:00)
Then I placed a label inside a test module and wrote DateTime.Now.ToString(), but it is not showing me the time according to the time zone that I set.
Am I doing something wrong?
Mocrosoft MVP [.NET/ASP.NET]
kaushal
Nuke Ace
Nuke Ace
Posts:42


--
07/19/2014 1:09 AM  
Even if I change the timezone from Admin > Site Settings > Advanced Setting. Then also it is not showing me the time according to set time zone. IS my understanding incorrect? IS that just for just save as the "setting"?
Mocrosoft MVP [.NET/ASP.NET]
Joseph Craig
DNN MVP
Posts:11667


--
07/20/2014 10:34 AM  
I think that DateTime.Now.ToString() returns the current SERVER time. That is an ASP.NET method, not a DNN method. You'll need to dig through the DNN API to find the correct method to use. A good way to do this would be to look at something that displays the user's time, and then look in the code to see what is being called.

There is a compiled help file for the DNN API on the page where you download DNN.

Joe Craig, Patapsco Research Group
Complete DNN Support


---