Will daylight saving time skip or double your cron job?
Enter a cron expression and a time zone. The checker finds every clock change in the next 12 months and shows what Debian/Ubuntu cron, cronie, systemd timers, Kubernetes CronJobs, AWS EventBridge Scheduler and GitHub Actions each do with your schedule: skip it, run it late, run it once, or run it twice.
What happens to a run when the clock jumps.
| Scheduler | Clocks go forward (a time is skipped) | Clocks go back (a time happens twice) | Basis |
|---|---|---|---|
| Debian / Ubuntu cron and cronie (RHEL, Fedora, Rocky, Alma, Arch) | A job at a fixed time inside the missing period runs right after the change. A job with * at the start of the minute or hour field (for example */15 * * * *), or @hourly, simply has no run for those minutes. |
A fixed-time job runs once (on the first pass). A job with * at the start of the minute or hour field follows the clock and runs on both passes. |
Debian cron(8); cronie src/cron.c (ported line by line) |
systemd timer (OnCalendar=) |
Skipped. | Runs once, on the first pass. | Checked with systemd-analyze 255 |
Kubernetes CronJob with .spec.timeZone |
Skipped. | Runs on both passes, including fixed-time jobs such as 30 1 * * *. |
robfig/cron v3.0.1 (the version Kubernetes uses), run directly |
| AWS EventBridge Scheduler (with a time zone) | Skipped. | Runs once. | AWS documentation |
GitHub Actions (timezone: on a schedule) |
Moved to the next valid time (2:30 becomes 3:00). | Not documented by GitHub. | GitHub documentation |
Schedules that run in UTC never hit any of this: Kubernetes CronJobs with no timeZone use the kube-controller-manager’s local zone (often UTC), GitHub Actions schedules use UTC unless you add timezone:, and classic EventBridge rules are always UTC.
What we found by running the schedulers.
1. Kubernetes runs a 1:30 job twice in November
On Linux, 30 1 * * * runs once on the night the clocks go back: cron’s main loop deliberately does not repeat fixed-time jobs, and a systemd timer only fires on the first pass. A Kubernetes CronJob with timeZone: America/New_York runs it at 01:30 EDT and again at 01:30 EST, because robfig/cron’s Next() walks real time and 01:30 matches twice. If the job is not safe to run twice, keep it out of the repeated hour or set timeZone: Etc/UTC.
2. */15 2 * * * and 0-59/15 2 * * * are not the same on Linux
They list the same minutes, but Debian cron and cronie decide whether a job is a “wildcard” job by looking at the first character of the minute and hour fields. */15 starts with *, so on the spring-forward night its four 2:xx runs simply never happen. 0-59/15 does not, so cron treats the job as fixed-time and starts all four missed runs one after another at 03:00.
3. systemd 255 trips over clocks that change at midnight or by 30 minutes
Chile, Cuba and Egypt change their clocks at midnight; Lord Howe Island moves them by 30 minutes and the Chatham Islands change at 2:45 a.m. In those zones systemd 255 (the version in Ubuntu 24.04) gets two kinds of schedule wrong around the change, and systemd-analyze calendar shows both:
- The next run goes backwards. In
America/Santiago,OnCalendar=*:0/15(cron*/15 * * * *) computes the run after 23:45 on 5 September 2026 as 23:00 the same evening, and keeps returning 23:00 for every base time up to the change. A timer treats a time that has passed as due, so it can trigger again at once instead of waiting for 01:15. - No next run at all. In
America/Havana,OnCalendar=*-*-* 00/2:00:00(cron0 */2 * * *) fails after 22:00 on the spring-forward night with “Infinite loop in calendar calculation”. systemd’stimer.cskips a trigger whose next time cannot be computed, and a timer left with no trigger goes to the elapsed state, so it stops until it is restarted.
Both come from the same place: the search in calendarspec.c copies the normalised tm_isdst flag back into the time it is searching from, and the next mktime() call then moves that time back by an hour. US, European and Australian east-coast zones, which change at 1-3 a.m. by a whole hour, were not affected in any of our test windows. systemd 258 added a guard to this search, so newer versions may behave differently; the checker models 255.
4. robfig/cron misbehaves with 30-minute shifts and 2:45 changes
robfig/cron v3.0.1 steps through hours with fixed 60-minute jumps, which does not fit those changes. On Lord Howe’s spring-forward day, 30 1 * * * fires at 01:30 and again at 02:30. On the Chatham Islands’ autumn change, a schedule in hour 3 such as 45 3 * * * makes Next() return 02:45 again and again without moving forward. These zones are small, but the checker reproduces both cases exactly.
How to keep DST out of your schedule
- Run the scheduler in UTC (server time zone,
timeZone: Etc/UTCin Kubernetes, notimezone:in GitHub Actions). Your local run time then moves by an hour twice a year, but nothing is skipped or doubled. - If the run must follow local time, keep it out of the hours the clocks change in. In the US, the EU and Australia that is roughly 01:00-03:00 local time; use the checker for your own zone, since some zones change at midnight.
- Make the job safe to run twice (a lock file, an “already done today” check, idempotent writes) if it has to run in those hours.
- On Debian and Ubuntu,
CRON_TZdoes not change when jobs run; only the system time zone does. cronie honoursCRON_TZ, but its source notes that per-job zones can miss or repeat runs around a change, and it does not run those jobs while the system zone itself is changing.
Related: Cron and daylight saving time (guide) · Crontab file checker · Cron to systemd timer converter · Kubernetes CronJob schedule builder · GitHub Actions cron · AWS EventBridge cron
Ported, then checked against the real thing.
- Kubernetes / robfig/cron: the checker contains a port of robfig/cron v3.0.1’s parser and
SpecSchedule.Next(), including Go’s rules for times that fall in a gap or a repeated hour. It was compared with robfig/cron v3.0.1 itself, compiled and run with Go, on 3,920 windows around every clock change in 2026-2027 in 14 time zones (70 different schedules): 0 differences. - systemd: the checker runs a port of systemd 255’s
calendarspec.csearch with glibc’smktime()behaviour for skipped and repeated times. It was compared withsystemd-analyze calendar255 on all 3,920 windows: 0 differences, including the 122 windows where systemd goes backwards or reports “Infinite loop in calendar calculation”, which the checker reproduces at the same moment. - Debian cron and cronie: the main loop of cronie’s
cron.c(the four cases for how far the clock moved) is ported line by line and run one simulated minute at a time; the results match the behaviour described in Debian’scron(8). - AWS and GitHub: their schedulers cannot be run locally, so the checker applies the rules in their documentation and says so.
- Time zone rules come from your browser’s time zone database, so a country that changes its rules after your browser was released may show old dates.
Sources: Debian cron(8); cronie src/cron.c; systemd calendarspec.c (v255) and timer.c (v255); robfig/cron v3.0.1 spec.go; Kubernetes CronJob documentation; AWS EventBridge Scheduler schedule types; GitHub Events that trigger workflows.
Daylight saving time and cron, answered.
Cron DST checker FAQs.
It depends on the job. Debian/Ubuntu cron and cronie run a job set for a fixed time in the missing hour (for example 30 2 * * *) right after the change, at about 03:00. Jobs with * at the start of the minute or hour field, and @hourly, have no runs in the missing minutes. systemd timers, Kubernetes CronJobs and AWS EventBridge Scheduler skip the missing time; GitHub Actions moves it to the next valid time.
On Debian/Ubuntu cron and cronie, a fixed-time job such as 30 1 * * * runs once, but a job with * in the minute or hour field (such as */15 * * * *) runs in both passes of the repeated hour. systemd timers and AWS EventBridge Scheduler run once. A Kubernetes CronJob with a time zone runs on both passes, even for fixed-time schedules.
Only the times the clock skips or repeats: in the US the 02:00-02:59 hour is skipped in March and 01:00-01:59 repeats in November; in the EU the change happens at 01:00 UTC, which is 02:00-02:59 local in Central Europe. Some zones change at midnight. Enter your zone in the checker to see the exact times for the next 12 months.
No. On Debian and Ubuntu cron, CRON_TZ is passed to the command but does not change when the job runs. cronie honours CRON_TZ, but if that zone observes daylight saving time the same skips and repeats apply, and cronie's own source warns that per-job zones can miss or repeat runs around a change. To avoid DST completely, run in UTC.
Run the scheduler in UTC, or schedule jobs outside the hours your zone changes in (roughly 01:00-03:00 in the US, Europe and Australia). If a job must run in those hours, make it safe to run twice and harmless to run late.