2

I've recently changed the timezone of my system.

timedatectl set-timezone [timezone]

I then restarted cron to adjust to the new timezone.

service cron reload

However, cron was still scheduling in the old timezone. I had to reboot the system before cron would adjust.

How can I force cron to use the new timezone if reloading the service won't work?

System: Ubuntu 16.04.

EDIT

This question is very similar to this question, but the cause of the problem, as well as the solution, were different.

2
  • 4
    Possible duplicate of Cron job does not fire up after a timezone change
    – Jeff Schaller
    Apr 23 '18 at 23:51
  • The solution there was to restart cron. The solution here was to restart cron. Was it really that different? Or did it just feel different because the other answers didn't explicitly give the restart command?
    – Ed Grimm
    Feb 23 '19 at 2:29
1

Executing a reload of cron didn't seem to be enough to refresh the timezone. However, running this command worked:

service cron restart

Thank you Jeff Schaller for your comment.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.