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.