Cron, time zones and daylight saving time

On this page

Each scheduler has its own time zone and its own answer to a clock change. Linux cron uses the system zone and moves or skips runs in a gap; Vercel always uses UTC; EventBridge skips a spring-forward run. The safest schedule runs in UTC.

Which time zone does each scheduler use?

SchedulerTime zoneSource
Linux cronThe system time zonecron(8)
Kubernetes CronJobThe controller's zone, unless spec.timeZone is setKubernetes docs
GitHub ActionsUTC by default; an IANA zone can be namedGitHub docs
Vercel CronAlways UTCVercel docs
AWS EventBridge SchedulerUTC or the zone set on the scheduleAWS docs
Cloudflare Cron TriggersUTCCloudflare docs
Render and RailwayUTCRender and Railway docs
pg_cronGMT unless cron.timezone is setpg_cron README

What happens when the clocks change?

  • Linux cron (cronie): changes under three hours are handled specially for jobs that run at a fixed time or less often than hourly. A run set for a time that does not exist runs when the clock jumps, and a repeated time runs once. More frequent jobs are scheduled normally, so skipped times are lost and repeated times run twice.
  • GitHub Actions: with a time zone that observes daylight saving, a run in the skipped hour advances to the next valid time, so 2:30 AM runs at 3:00 AM.
  • AWS EventBridge Scheduler: a run on a non-existent time is skipped; on fall back, the schedule runs only once. UTC schedules are never adjusted.
  • Laravel: the documentation warns that a task with a time zone may run twice or not at all, and recommends avoiding time zone scheduling when possible.

The next run calculator shows these effects for your expression and zone, and every cron expression page lists what the next two clock changes do to that schedule.

How do I schedule so a change cannot hurt?

  1. Run the machine and the scheduler in UTC where you can.
  2. Avoid the hour in which your zone changes the clock. Between 01:00 and 03:59 local time is the risky window in many zones.
  3. Where a local time matters, use a scheduler that takes a zone per schedule and documents its rule.
  4. Give the check a grace time long enough to absorb a moved run, and use a cron check in the same zone so the expected time moves with the clock.

Sources

Questions and answers

Does CronMissed handle daylight saving in its checks?
A cron check carries an IANA time zone and computes each expected time for that zone, including clock changes, using the rule of Linux cron.
My server is in UTC but my business is not. What do I do?
Write the schedule in UTC and convert once. A job at 09:00 in New York is 13:00 or 14:00 UTC depending on the season, so decide which one matters, or use a scheduler that takes a time zone.
Know the moment a job goes quiet

Create a check, add one curl to the job, and CronMissed alerts you when a ping is late or reports a failure.

Start monitoring