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
|
|
|
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
|
|
|
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
|
|
|