Log in

View Full Version : Time Offset Code


prowarfare
12-05-2007, 09:29 PM
Hello, The web server my forums are hosted on is set 1 hour off of the real time. So on my computer w/ Timezone -8 at 7:00. The server says 6:00 w/ set to -8.

Is there a line of coding or a few lines of coding i could add in where it adds 1 hour to whatever the time is? Some of my members have been complaining about it.

Example: (server time) + 1 = what members see.

Marco van Herwaarden
12-06-2007, 06:18 AM
Why not set the server to the correct time?

prowarfare
12-07-2007, 01:42 AM
Its web hosting from siteground.com I get cpanel access, they dont allow you to change the server unless you buy a dedicated server. Thats why I want to see If i can add in a code to fix it.

Marco van Herwaarden
12-07-2007, 08:33 AM
If they set the server to the correct time, timezone & DST, then you should have no problems. Regardless if this is a dedicated server or not, you should at least expect they setup the server correctly.

prowarfare
12-07-2007, 12:42 PM
They said they are running CDT (Cental Daylight Time)

What they replied to in my support ticket.
The current time zone on the server is set to CDT:

http://en.wikipedia.org/wiki/Central_Daylight_Time_%28North_America%29

support@support.com [~]# date
Thu Jun 28 16:12:19 CDT 2007
support@support.com [~]#

I am afraid that this can not be changed.

Marco van Herwaarden
12-07-2007, 12:44 PM
If the server time & timezone is set correctly (regardless of the timezone used) and you have set your user timeoptions correctly in your UserCP settings, then the time should show correctly.