What Timezone Does Cron Use — and How to Change It

Cron has no timezone setting of its own. It runs on the clock of the machine where the daemon lives: the system timezone, the same one date prints.

If a job that should run at 02:00 fires at 03:00, the usual cause is simple: the server is set to UTC and you are thinking in local time. That is the midnight trap in miniature.

See which zone the server uses

timedatectl

The line Time zone: is the answer. On a small VPS it is often Etc/UTC, even when you and your users live somewhere else.

date

This prints the current time with the zone abbreviation. Both commands read the same setting, so they always agree.

Change it, and know what you changed

sudo timedatectl set-timezone Europe/Kyiv

Replace the zone with yours from timedatectl list-timezones. The change applies at once: every crontab entry now means local wall-clock time in that zone.

Two things follow from this.

Existing jobs move. A job written as 0 2 * * * that used to run at 02:00 UTC now runs at 02:00 local time. If the offset matters, review every line after the switch — especially backups that were timed to sit in a quiet window.

Every user crontab follows the same clock. There is no per-user timezone. A line added by deploy and a line added by root mean the same wall-clock hours.

When you cannot change the server

Some hosts keep UTC on purpose, and some teams share one machine across regions. Then you have three honest options.

  1. Write the schedule in UTC and keep the conversion nearby. A comment above the line saves the next reader: # 02:00 UTC = 05:00 Kyiv in summer.
  2. Check your cron build. Some implementations — cronie, used on RHEL-family systems — accept a CRON_TZ=Europe/Kyiv line at the top of the crontab. Debian’s cron ignores it. Run man 5 crontab on the actual machine before you rely on this.
  3. Use a systemd timer. Its calendar syntax can carry a zone explicitly, so the schedule does not depend on the server’s default.

The DST edge

Twice a year, a job scheduled between 01:00 and 03:00 can be skipped or run twice, depending on the implementation and the direction of the shift. A nightly backup at 02:30 is exactly the wrong time to be clever. Move such jobs outside the switch window, or accept that one night a year behaves oddly.

Confirm what the machine believes

Before you debug the job itself, confirm the clock: date, then timedatectl. If the zone is wrong, the schedule is right and still fires at the wrong hour — and no amount of editing the crontab will fix it. For the rest of the checklist, see why scheduled jobs fail; to translate a line between zones by hand, use the converter.