Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Server Time
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Server Time

 Post Reply Post Reply
Author
Rebel Gaa View Drop Down
Groupie
Groupie


Joined: 04 September 2003
Location: Ireland
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rebel Gaa Quote  Post ReplyReply Direct Link To This Post Topic: Server Time
    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?

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 01 January 2004 at 8:34pm
Users can adjust their time in the profile...
Back to Top
Rebel Gaa View Drop Down
Groupie
Groupie


Joined: 04 September 2003
Location: Ireland
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rebel Gaa Quote  Post ReplyReply Direct Link To This Post Posted: 02 January 2004 at 9:03am
I understand that but how can it be done for everyone, guests and all?
Back to Top
psycotik View Drop Down
Groupie
Groupie


Joined: 27 November 2003
Status: Offline
Points: 73
Post Options Post Options   Thanks (0) Thanks(0)   Quote psycotik Quote  Post ReplyReply Direct Link To This Post Posted: 02 January 2004 at 10:16pm
You cant, unless you hard code the time into the register.asp page.
Back to Top
Rebel Gaa View Drop Down
Groupie
Groupie


Joined: 04 September 2003
Location: Ireland
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rebel Gaa Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
xucongxin View Drop Down
Newbie
Newbie


Joined: 11 January 2004
Location: Canada
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote xucongxin Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.