GMT settings

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.
7/9/2009 2:22:56 AM
Nux
Gravatar
Total Posts 183

GMT settings

Hey there,

I could use some help with the GMT settings, cause I got some strange things here.
Since I'm from Belgium, I have setup the gmt setting in my profile to +1 (Brussels).
But I would like to have that for all users, so I guess that I have to change the "PreferredGreenwichMeantimeOffset" key in web.config to +1, so unauthenticated users see the same thing as me. But when I do that, and I check the system information, I got this:
Server Time Zone: Central Daylight Time
Server Local Time: 9/07/2009 2:12:34
Current Time in Greenwich (aka GMT or UTC): 9/07/2009 7:12:34
Server GMT Offset -5
Preferred GMT Offset Web.config Setting 2

Why is the current time 7:12:34 and not 9:12:34?
And when I want to insert a new blog item, the time is 8:12:34. So I really don't understand.
I thought I would get 9:12 on all places, since this is set in the web.config. Also, changing that 2 to 6 doesn't do anything.

So can someone tell me which setting I have to use in the web.config to have the correct times on all places?

Thanks
Stef
 


 

7/9/2009 9:04:04 AM
Gravatar
Total Posts 18439

Re: GMT settings

Hi Stef,

Could it be that the server has the incorrect time for its own time zone (-5/Central Daylight Time) and needs to have its clock adjusted?

Best,

Joe

7/10/2009 1:47:36 AM
Nux
Gravatar
Total Posts 183

Re: GMT settings

Hey Joe,

I checked my server, and the time zone is GMT -6 Central Time (Canada & US).
There is a time zone -5, but that is Eastern Time (Canada & US).

I didn't changed it when I ordered my server, so I guess that would be the correct time, no?

Stef

7/10/2009 9:01:53 AM
Gravatar
Total Posts 18439

Re: GMT settings

Hi Stef,

Do you have an actual plus sign in the setting like +1?, if so can you try just change it to 1.00

Hope it helps,

Joe 

7/10/2009 1:24:25 PM
Nux
Gravatar
Total Posts 183

Re: GMT settings

Hey Joe,

I tried it already, but without any changes.

But I have figured it out. The system works fine, only the value of "Current Time in Greenwich (aka GMT or UTC)" is wrong I guess.
So let me explain. First of all, because of the fact that we are in the summer, the GMT for Brussels is not +1 but +2. When I update my profile with this value, I got the correct times on the blog. I also changed it in the web.config, and without being logged in, I got the correct times.
But... the value of "Current Time in Greenwich (aka GMT or UTC)" is always the server time with + 5 hours and I expect to see the time like unauthorised users see.

Or am I wrong?

Stef

7/10/2009 1:33:46 PM
Gravatar
Total Posts 18439

Re: GMT settings

Hi Stef,

Current Time in Greenwich means exactly that, its basically DateTime.UtcNow.ToString(), the server is configured at Central Time which during Daylight Savings (ie Summer as you said) is -5, -5 means 5 hours behind Greenwich, Greenwich is like the standard that all time offsets are based on, so all time zones are referenced by their difference + or - vs GMT or Greenwich Mean Time. So Utc (Universal Time Code) is the same thing as GMT.

Note that in .NET 3.5 we have some better TimeZoneInfo class that we could use to automatically adjust the profile time offset druing Daylight Savings, but I am waiting for it to be implemented in Mono before I can use it.

Best,

Joe

7/10/2009 1:44:00 PM
Nux
Gravatar
Total Posts 183

Re: GMT settings

OK, so my mistake.

My question now: what are you with that time? Wouldn't it be better to see the time the admin has filled in with the preferred GMT? Or showing all times: server time, Current Time in Greenwich and the time which is configured in the web.config, after "Preferred GMT Offset Web.config Setting"?

I won't forget this in the future, but where can you check the value of the preferred gmt if you don't use a blog or other things where the date is showed?

Stef

 

7/10/2009 1:49:37 PM
Gravatar
Total Posts 18439

Re: GMT settings

Yeah, its a good point/idea I will see about adding some more info on that page to make it clearer, I just figured the GMT value is the best clue to determine if the web server is configured with the correct time or not because no matter where you are you can figure out what time is correct GMT.

Best,

Joe

7/10/2009 1:54:26 PM
Nux
Gravatar
Total Posts 183

Re: GMT settings

Cool.

I guess not many users change that value, but if they do, it would be nice to have a check.

Thanks Joe

Stef
 

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