Created By
DMG Development
As Seen On

Main Page  |  Forums  |  Register  |  Active Topics  |  Members  |  Search

 
Username:
Password:
DMG Forums >> DMG Forums Discussion >> General Discussion >> Time Zone Offset - Manual Fix
Time Zone Offset - Manual Fix
Author Topic
jhendrix


Newbie

Join Date: 3/26/2009
Posts: 6

Posted: 3/26/2009 11:55:56 PM

My hosting server is in the pacific time zone. My site will primarily be used by individuals in the central time zone. Is there an easy way to modify the code to either get all time to appear in the users time zone or offset the time to that of the primary time zone?
jhendrix


Newbie

Join Date: 3/26/2009
Posts: 6

Posted: 4/2/2009 8:52:37 PM

Lot's of views, but no takers on this question??? Is anyone else experiencing this?
grimmeissen


Administrator


Join Date: 8/30/2005
Posts: 656
Location: Cincinnati, Ohio

Posted: 4/3/2009 8:10:43 AM

I've thought it about it a few times but didn't have anything enlightening to say yet. I haven't done it before. All of the date functions use the time/date stamp that the SQL database provides. I haven't really though about your problem, but it is an interesting issue having your server in a different timezone than most of the users.
jhendrix


Newbie

Join Date: 3/26/2009
Posts: 6

Posted: 4/7/2009 12:06:35 AM

Any thoughts on this one yet?
jhendrix


Newbie

Join Date: 3/26/2009
Posts: 6

Posted: 4/10/2009 12:43:08 PM

Sort of fixed - Manual change to set correct time

I modified Global.vb and changed all of the "GETDATE()" entries to "DATEADD(hh, 2, GETDATE())"

This changes the time on any new posts to be offset 2 hours from the database time - So since my database is pacific time and 99% of users are central time, this adds 2 hours to the time and makes the users happy.

This will get me by for now. Whoever comes up with a solution to adjust all times based on the users browser time, please post it.
grimmeissen


Administrator


Join Date: 8/30/2005
Posts: 656
Location: Cincinnati, Ohio

Posted: 4/10/2009 7:05:20 PM

I haven't come up with the original solution you were looking for yet, but you have done a nice fix to get it taken care of for your site. Good work.
solamar


Beginner


Join Date: 4/2/2009
Posts: 12

Posted: 9/15/2009 11:57:56 PM

I'm hoping there comes a fix. We're having the same issue here.


  Copyright DMG Development DMG Forums 3.2