Daylight saving time

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
4/5/2009 7:17:29 PM
Gravatar
Total Posts 33
www.jaosobne.cz
Windows Server 2008 R2
Microsoft SQL Server 2008
MojoPortal 2.3.6.2

Daylight saving time

Hi, I just encountered, that mojoPortal sticks with Central Europe Standard Time, so each action is marked as being one hour earlier, since we do have Central European Daylight-Saving Time now. My Server switched the time, so now its GMT offset is +2, but I have +1 in my web.config. Do I have to change this value in web.config twice a year, or is there any other way to get mojoPortal "to sync with the world"? Thanks a lot.

4/6/2009 6:35:10 AM
Gravatar
Total Posts 18439

Re: Daylight saving time

Yes, I'm afraid its true, the time zone offset is just a straight hours offset from GMT, it does not auto adjust according to Daylight Savings so it would ahve to be adjusted manually as needed.

Daylight Savings time is a very complicated thing, its different in various time zones and, even more complicated, some regions a person may be in one time zone part of the year and another time zone other parts of the year. In .NET 1.1 and 2.0 there was not much built in to help with this, but maybe there are some new things in .NET 3.5. When I get a chance I will investigate whether there is anything new that may help us support automatic adjustment for Daylight savings time.

Best,

Joe

4/6/2009 10:11:11 AM
Gravatar
Total Posts 33
www.jaosobne.cz
Windows Server 2008 R2
Microsoft SQL Server 2008
MojoPortal 2.3.6.2

Re: Daylight saving time

I just saw you playing with it on Twitter. Nice :-) Looking forward.

4/6/2009 10:20:25 AM
Gravatar
Total Posts 18439

Re: Daylight saving time

This new TimeZoneInfo class in 3.5 .NET should prove helpful I think. Only drawbacks is using it will give us more dependency on 3.5 .NET, whereas up till now it has still been relatively easy to produce a 2.0 .NET build of mojoPortal, this will make it more difficult, but time and technology marches on.

The other thing I need to test is if this class is implemented in Mono yet before making a dependency. For the moment I'm implementing some proof of concept code that I can comment out if I need to wait for Mono.

Cheers,

Joe

You must sign in to post in the forums. This thread is closed to new posts.