Hi,
Can advise how to sync the php time and system time to current timezone set, the time is delay of almost 12hrs, please help.
follow the xi_changing_time documentation but still not sync.
Date/Time
PHP Timezone: Asia/Singapore
PHP Time: Sun, 28 Jul 2013 22:08:51 +0800
System Time: Sun, 28 Jul 2013 22:08:51 +0800
PHP and System Time not Sync to Timezone
Re: PHP and System Time not Sync to Timezone
Is the current timezone is correct?
Are you running ntp?
Have you restarted the httpd server?
Are you running ntp?
Have you restarted the httpd server?
Code: Select all
service httpd restartFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: PHP and System Time not Sync to Timezone
This is strange - they seem to be synced. Did you try restarting the server?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: PHP and System Time not Sync to Timezone
timezone is correct but the system php/server time is not sync to timezone. Singapore is +0800 GMT
restarted server and httpd same thing.
restarted server and httpd same thing.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: PHP and System Time not Sync to Timezone
I am confused, why do you think they aren't synced? These look like a match to me...
piktoy wrote:PHP Time: Sun, 28 Jul 2013 22:08:51 +0800
System Time: Sun, 28 Jul 2013 22:08:51 +0800
Re: PHP and System Time not Sync to Timezone
scottwilkerson wrote:I am confused, why do you think they aren't synced? These look like a match to me...
piktoy wrote:PHP Time: Sun, 28 Jul 2013 22:08:51 +0800
System Time: Sun, 28 Jul 2013 22:08:51 +0800
oh meaning the timezone singapore current time is not sync to what sytem profile shows
the current time in singapore now is July31 - Wed - 10am, but the server time is late
----------
PHP Timezone: Asia/Singapore
PHP Time: Tue, 30 Jul 2013 21:54:00 +0800
System Time: Tue, 30 Jul 2013 21:54:00 +0800
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: PHP and System Time not Sync to Timezone
Oh.....
run
then
run
Code: Select all
yum install ntp -yCode: Select all
ntpdate pool.ntp.org
ntpdate pool.ntp.org
service ntpd start
date