My server was originally Eastern Time. But I used tzselect to change the timezone. Now typing date into the command line prints out the new timezone. But crontab still uses the old timezone to execute commands. How can I get crontab to use the new timezone? Is there something else that crontab uses for getting time/dates?
1 Answer
Fixed. tzselect doesn't work. To change system wide time use: dpkg-reconfigure tzdata
-
FYI - It is a best practice (especially in large enterprises with multi-national offices) to have all systems, routers, switches, etc log using UTC. Users set their timezones locally. Definitely helps when troubleshooting network related issues and forensics of hacks, intrusions, and other anomalies.Deathgrip– Deathgrip2017-07-30 01:33:40 +00:00Commented Jul 30, 2017 at 1:33
sudo service cron restartbut still same thing. Also no I am calling a python script from my crontab.