Time Zone Problem

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
4/30/2009 10:29:03 AM
Gravatar
Total Posts 115
mojoPortal Community Expert

Time Zone Problem

I am not sure what the problem is. I am in the Eastern Tiem Zone, but all times on my site are showing an hour behind. I.e, if I were to make a post know it would show 10:30 instead of 11:30. I have made sure that my profile is set to Eastern GMT -5. The system settings show this:

Server Time Zone Mountain Daylight Time
Server Local Time 4/30/2009 9:27:43 AM
Current Time in Greenwich (aka GMT or UTC): 4/30/2009 3:27:43 PM.

Everything seemed to be correct before the last upgrade. Anyone have any ideas?

4/30/2009 11:56:38 AM
Gravatar
Total Posts 18439

Re: Time Zone Problem

It does not adapt to daylight savings time currently. Eastern Time in the US is -5 during part of the year but during daylight savings it is -4, so its not the upgrade, its that we just entered daylight savings time.

I've actually got a better implementation designed using new TimeZoneInfo classes in .NET 3.5 we could automatically adjust. But I can't use it yet because its not implemented in Mono, so I'm waiting for them to implement it so we don't break compatibility.

For now you would just need to choose a -4 time zone.

Hope it helps,

Joe

3/16/2010 3:28:47 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Daylight Saving Time (revived)

Hi Joe, I just wanted to bump this since as you know I've been obsessed with time lately. cool

I noticed the lack of DST adjustment yesterday on my local server, and I was able to adjust the preferred time offset from -8 to -7 in user.config to fix the difference for un-authenticated users.

The more important issue to me is that all authenticated users are definitely going to be off, so we'd either have to adjust everyone's profile or maybe do a database update to change the offset.

So... How's that Mono implementation coming along? yes

Thanks!

Jamie

 

3/29/2010 11:08:54 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Time Zone Problem

Hey Joe, I saw you've been working diligently on the time zone fixes in the latest SVN updates. Mucho thanks in advance!

3/29/2010 1:51:50 PM
Gravatar
Total Posts 18439

Re: Time Zone Problem

Hi Jamie,

Yes, I got it working by using conditional compilation to keep the old solution for Mono. In the next release there will also be a Site Setting for the default time zone of the site instead of the current web.config preferredgreenwichmeantimeoffset.

Best,

Joe

3/29/2010 4:28:43 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Time Zone Problem

Awesome news, thanks so much.

Jamie

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