crontab的时区问题

需要在/etc/crontab文件中增加以下两行:

CRON_TZ=Asia/Shanghai
TZ=Asia/Shanghai

然后重启: service cron restart