Skip to content

Instantly share code, notes, and snippets.

@gmolveau
Last active May 5, 2022 07:34
Show Gist options
  • Save gmolveau/2c3bd188f7255688b3a813bb460067b6 to your computer and use it in GitHub Desktop.
Save gmolveau/2c3bd188f7255688b3a813bb460067b6 to your computer and use it in GitHub Desktop.
cron/crontab with correct local time

cron with correct timezone

sudo apt-get install tzdata
# if already installed use :
sudo dpkg-reconfigure tzdata 

# verify that the time is correct
timedatectl

# restart cron
sudo service cron restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment