Help me - Time display incorrect

Status
Not open for further replies.

hasang.hhd50

New Member
Messages
6
Reaction score
0
Points
0
I am using x10hosting free!but Time display incorrect :(!Time shoud GMT+7 but display GMT+8
please help me!

Sorry I written English of my poorly :frown:
 

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
The servers are set to x10hosting time, not your time :)

~Callum
 

dlukin

New Member
Messages
427
Reaction score
25
Points
0
Where are they located, Halifax? I am in California and they display 4 hours past me.
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
We can't change the time on the server; there's a reason PHP supports setting your timezone so you can -override- what the server time is kicking back.

The other reason the time is off is that the server may -not- be using Daylight Savings Time while your area might be.
 

dlukin

New Member
Messages
427
Reaction score
25
Points
0
PHP:
$timezone_identifier = 'America/Los_Angeles';
date_default_timezone_set(  $timezone_identifier  );

$dt = date('l jS \of F Y h:i:s A');

echo $dt ;

Displays the time an hour fast. ie, shows 3:50 pm when it is really 2:50 pm

PS:

PHP:
$tz=date_default_timezone_get();

echo $tz;

displays America/New_York , while your servers are physically in Chicago.
 
Last edited:

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Hello,

Current time in "NewYork" aka EST as of this post: 7:01 PM (x10 itself is located within this timezone)

Stoli: root@stoli [~]# cat /etc/sysconfig/clock
ZONE="America/New_York"
UTC=true
ARC=false
root@stoli [~]# date
Tue Sep 14 19:03:47 EDT 2010
root@stoli [~]#

Starka: root@starka [~]# cat /etc/sysconfig/clock
ZONE="America/New_York"
UTC=true
ARC=false
root@starka [~]# date
Tue Sep 14 19:04:33 EDT 2010

Chopin: root@chopin [~]# cat /etc/sysconfig/clock
ZONE="America/New_York"
UTC=true
ARC=false
root@chopin [~]# date
Tue Sep 14 19:05:40 EDT 2010

Boru: root@boru [~]# cat /etc/sysconfig/clock
ZONE="America/New_York"
UTC=true
ARC=false
root@boru [~]# date
Tue Sep 14 19:06:02 EDT 2010


It all looks good to me.
 
Last edited:
Status
Not open for further replies.
Top