Ubuntu:修改时区, How do you set the timezone for crontab?

I had a similar problem on Trusty (14.04). Solved it by setting machine’s timezone then restarting cron service

  1. sudo dpkg-reconfigure tzdata – follow the instructions to select Region/Country
  2. sudo service cron restart

 

本文:Ubuntu:修改时区, How do you set the timezone for crontab?

Leave a Reply