Did you know?
Ubuntu and Debian cron ignore CRON_TZ.
Cron on Ubuntu/Debian always uses the system time zone; CRON_TZ only works with cronie (RHEL family).
- System & services
- Last checked
Explained
Some guides tell you to put CRON_TZ=Asia/Kolkata (or any zone) at the top of a crontab to run jobs in another time zone. That works with cronie on Rocky Linux, AlmaLinux and RHEL, but the cron daemon on Ubuntu and Debian treats CRON_TZ as a plain environment variable. The schedule still follows the system time zone.
We tested it on Ubuntu 26.04: a job set for 14:32 under CRON_TZ=Asia/Kolkata never ran on a UTC server, while the same minute written in UTC did.
On Ubuntu and Debian, convert the time to the server’s zone yourself (check it with timedatectl), or change the server’s zone with sudo timedatectl set-timezone Asia/Kolkata. If the other zone has daylight saving time, the converted time shifts by an hour twice a year.
Learn more
- 40 Crontab Examples in Linux: Practical Cron Jobs That Work Full guide · Updated Nov 2026
-
crontabcommand cheat sheet Options and copy-ready examples
