Print Page | Close Window

Server Time

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=8490
Printed Date: 08 April 2026 at 5:01am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Server Time
Posted By: Rebel Gaa
Subject: Server Time
Date Posted: 01 January 2004 at 6:50pm

I'm running my forum v7.6 on an american server so the times are in American time. Is there anyway i can change the server time so it would show GMT time? Any code that i could change or anything?

Any help?




Replies:
Posted By: michael
Date Posted: 01 January 2004 at 8:34pm
Users can adjust their time in the profile...

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: Rebel Gaa
Date Posted: 02 January 2004 at 9:03am
I understand that but how can it be done for everyone, guests and all?


Posted By: psycotik
Date Posted: 02 January 2004 at 10:16pm
You cant, unless you hard code the time into the register.asp page.


Posted By: Rebel Gaa
Date Posted: 03 January 2004 at 7:40am

Originally posted by psycotik psycotik wrote:

You cant, unless you hard code the time into the register.asp page.

Any clues how to do so?

Thanks



Posted By: ljamal
Date Posted: 03 January 2004 at 8:16am
If you are using SQL server, you can change the default for times to from getdate() to get getUTCdate() which will get the GMT date rather than server date. This may not be accurate as the code may use web server rather than SQL server time in some instances (I have corrected this at least once in a past version).

The easiest way would probably just be to open common.asp and set the hour offset to whatever you need it to be.

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: xucongxin
Date Posted: 14 April 2004 at 3:30pm

How about for Access Database, More Detail Please.
Thank you very much!

Originally posted by ljamal ljamal wrote:

If you are using SQL server, you can change the default for times to from getdate() to get getUTCdate() which will get the GMT date rather than server date. This may not be accurate as the code may use web server rather than SQL server time in some instances (I have corrected this at least once in a past version).

The easiest way would probably just be to open common.asp and set the hour offset to whatever you need it to be.



Posted By: WebWiz-Bruce
Date Posted: 14 April 2004 at 4:13pm
It is not possible to get the GMT date with ASP.

Even the suggestion from ljmal for SQL server would not work as the ASP inserts most of the times in the database, by trying to change it directoy in the database will course the forum to be unstable.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net