IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Server Time Help


BOAW
no avatar
Super Member
*********
Group: Members
Posts: 294
Joined: 28-January 06
Member No.: 17,798



Post #1 post Feb 19 2006, 02:13 PM
My Webpage If you check here in my site in my Login block called "user info" at the bottom it tells u the "server time". Well that server time for me is wrong. This is what is displayed
QUOTE
Server Time
· Time 14:06:53

· Date 19 Feb 2006

· Timezone +0000


The Date is right but the Timezone and Time are just way off. My Timezone should be -500. What do i have to do to fix this? Is it in my cpanel or do i have to go edit this block itself??
Go to the top of the page
+Quote Post
sportytalk
no avatar
Super Member
*********
Group: Members
Posts: 326
Joined: 7-October 05
Member No.: 12,650



Post #2 post Feb 19 2006, 04:44 PM
The time on your page is displaying the time received straight from the server's time (most probably by using the php date function).

If you were to fine tune this, lets say forward or backwards an hour, then the timezone should theoretically add the difference between your time and the time of this server (which is actually in Grenwich Mean Time (GMT - British Time.)).

p.s. If you need another time code that allows you to fine tune the time, just reply. But the reasons explained above are what's happening to your site.

Hope this helps :-)

This post has been edited by sportytalk: Feb 19 2006, 04:45 PM
Go to the top of the page
+Quote Post
Amezis
no avatar
Privileged Member
*********
Group: Members
Posts: 535
Joined: 14-February 05
From: Oslo, Norway
Member No.: 3,759



Post #3 post Feb 19 2006, 05:16 PM
Just a quick note. The British time is based on UTC, not GMT. On 1 January 1972, GMT was replaced as the international time reference by Coordinated Universal Time (UTC). That's over 30 years ago. tongue.gif
Go to the top of the page
+Quote Post
Spectre
no avatar
Privileged Member
*********
Group: Members
Posts: 873
Joined: 30-July 04
Member No.: 246



Post #4 post Feb 19 2006, 05:33 PM
Hmm, not entirely true. Although UTC has superceded GMT, the term GMT is still commonly used in reference to timezones (ie. GMT+x).

Anyway, this error is purely related to the PHP script being used, and has nothing to do with cPanel (I've got no idea where you're headed with that one...) In order to display the difference to GMT, simply call the date() function including 'O' in the format string, which will display the GMT difference in hours. For example:

CODE
echo 'Timezone: ' . date('O');
Go to the top of the page
+Quote Post
sportytalk
no avatar
Super Member
*********
Group: Members
Posts: 326
Joined: 7-October 05
Member No.: 12,650



Post #5 post Feb 19 2006, 05:47 PM
hehe, I believe both GMT and UTC are acceptable today cool.gif

Whilst we are on the subject of server time, does anyone know the timezone of the Cron System (in relation to GMT [GMT +x])?

Was trying to have a task carried out at 7pm GMT, but it happens at 3am or something like that. I thought it was 8 hours ahead, but the timezone doesn't seem to be consistent.

This post has been edited by sportytalk: Feb 19 2006, 05:50 PM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   0 OpaQue 676 9th September 2004 - 08:40 AM
Last post by: OpaQue
No New Posts   5 outwarsecrets 601 16th August 2004 - 06:40 AM
Last post by: stephenob
No New Posts   9 Panzer 758 4th January 2007 - 08:52 PM
Last post by: fffanatics
No New Posts   7 Raptrex 596 27th August 2004 - 11:16 PM
Last post by: Spectre
No New Posts 1 NuHoaXuLa 576 27th August 2004 - 05:43 PM
Last post by: odomike
No New Posts 3 NuHoaXuLa 649 17th November 2006 - 08:33 AM
Last post by: farsiscript
No New Posts 0 synderoxide 727 8th September 2004 - 04:53 AM
Last post by: synderoxide
No New Posts 0 pasten 399 6th January 2008 - 06:53 AM
Last post by: nitish
No New Posts   0 sekundar 756 26th July 2006 - 07:35 AM
Last post by: sekundar
No New Posts   1 truvu17 493 21st September 2004 - 09:12 AM
Last post by: OpaQue
No New Posts 5 hulunes 667 20th October 2004 - 02:39 PM
Last post by: melkonianarg
No New Posts   0 aoehq 1,101 17th March 2007 - 06:20 AM
Last post by: aoehq
No new 134 Saint_Michael 11,125 Yesterday, 03:43 PM
Last post by: SiUK
No New Posts   0 Bimboadmasministries 598 8th October 2004 - 11:45 AM
Last post by: Bimboadmasministries
No New Posts   0 Bimboadmasministries 471 8th October 2004 - 11:55 AM
Last post by: Bimboadmasministries


 



RSS Open Discussion Time is now: 8th January 2009 - 09:50 AM