/Admin/ManageUsers.aspx times

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
7/9/2007 10:19:14 AM
Gravatar
Total Posts 488

Re: /Admin/ManageUsers.aspx times

So, GreenwichMeantimeOffset setting usage is replaced to TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).TotalHours.

What about replacing it in the last place it is now (Siteuser.cs line 1454) and removing it from web.config?

6/21/2007 3:06:07 AM
Gravatar
Total Posts 488

Re: /Admin/ManageUsers.aspx times

You can determine current time zone the server is in by calling TimeZone.CurrentTimeZone property. So there is no need for web.config setting.

6/7/2007 2:47:32 PM
Gravatar
Total Posts 18439

Re: /Admin/ManageUsers.aspx times

The dates are stored in the db as UTC which is equivalent to GMT.

They are displayed based on the preferred time zone of the user viewing the page. However to correctly calculate the difference so that we can translate the GMT time to your time zone, we must also know what time zone the server is in. GreenwichMeantimeOffset should be the difference between server local time and GMT. If the viewing user is logged in (i.e you logged in as admin) then the display is adjusted to your preferred time zone from your user profile.

In the case of anonymous users (not on this page since we are talking about an admin page, but in other places like the blog) Dates are adjusted to the PreferredGreenwichMeantimeOffset setting. This way if I'm living in CST time zone but my server is on the west coast in PST, I can still make the default display adjust to CST so that my site reflects my time zone.

The server should adjust to energy savings but there is a limitation in the current implementation in that we don't have any handling for cases where the user is in different time zones during different times of the year. In that case, the user will have to adjust his preferred time zone when this happens.

Joe

6/7/2007 11:19:35 AM
Gravatar
Total Posts 488

/Admin/ManageUsers.aspx times

As far as I understand, when it is decided in what time zone to display all the times on this page web.config setting GreenwichMeantimeOffset is used.

I can configure it to my local time, of course. But what will happen 2 times a year (according to energy saving time changes)?

7/9/2007 10:42:05 AM
Gravatar
Total Posts 18439

Re: /Admin/ManageUsers.aspx times

Will do.

Thanks,

Joe

7/12/2007 8:28:52 AM
Gravatar
Total Posts 488

Re: /Admin/ManageUsers.aspx times

Thanks for the improvement.

As this thread moved from the question I began with, I shall start a new one:

http://www.mojoportal.com/ForumThreadView.aspx?thread=958&forumid=9&ItemID=9&pageid=5&pagenumber=1#post4120

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