I have a question about time setting in CentOS. I have updated my system time with:

# yum install -y ntp
# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# ntpdate us.pool.ntp.org

# date, Now my system is Sun Jan 22 18:19:48 CET 2012

And I also setting some crond

* 8,9,10,11,12,13,14,15,16,17,18,19,20,21 * * * /usr/bin/php /var/www/html/myecu/site.php

But the cron not working. I do: service crond restart, # tail -20 /var/log/cron, the cron log show the last thing is:

Jan 22 03:27:50 ip-XX-XX-XX-XX crond[1010]: (root) CMD (run-parts /etc/cron.hourly)

It still as a USA time.

Am I wrong? I just want adjust the system time to my hometown. Then it is easy unite all the script time. Thanks.

link|improve this question
feedback

migrated from stackoverflow.com Jan 22 at 13:11

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown