Use this when time zones affect schedules.
Time Zones
Time zones matter for scheduling: decide whether jobs run in UTC or local time, and handle daylight saving changes, when 02:30 may happen twice or not at all.
1. Be explicit about time zones.
2. UTC for infrastructure jobs; local for business-facing ones.
3. DST may skip or repeat runs.
4. Document.
5. Log timestamps in UTC.
schedule + time zone → actual run time
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as DST/timezone drift, duplicate firing, missed triggers, scheduler downtime, dependency race, long-running overlap and successful trigger without successful target work, choosing the cases most relevant to IANA/Windows timezone identity, DST transitions, ambiguous/nonexistent local times and storing/observing UTC alongside local schedule intent.
Step 2 Common mistakes Narrow the fault
- Mixing UTC and local time between scheduler and logs.
- Jobs scheduled in the DST gap (02:00–03:00).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Decide between UTC and local time.
- Daylight saving can skip or repeat times.
- Document the choice.
timedatectl— host time zone- Scheduler time zone setting (CRON_TZ, TZ) — explicit
- DST transitions tested — edge cases
ReferenceWhy it matters1 section · depth on demand
What it is
Schedules run in a time zone. DST changes make a 02:30 local job run twice or not at all; UTC schedules avoid this but must be converted for business hours.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Time zones decide when a scheduled job actually runs. A schedule written as "02:00" means different moments on servers in different zones, and daylight saving time changes can make a job run twice, skip a run, or shift by an hour.
Rules:
- Run servers and schedulers in UTC where possible, and convert for display.
- If local time is required (business hours, maintenance windows), specify the time zone explicitly.
- Avoid scheduling between 01:00 and 03:00 local time in zones with daylight saving — those hours are skipped or repeated once a year.
OnCalendar=Mon..Fri 07:30 Europe/Copenhagen # systemd
spec:
schedule: "30 6 * * 1-5"
timeZone: "Europe/Copenhagen" # Kubernetes CronJob
CRON_TZ=Europe/Copenhagen
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Scheduling > Time Zones. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.freedesktop.org/software/systemd/man/latest/systemd.timer.html · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For IANA/Windows timezone identity, DST transitions, ambiguous/nonexistent local times and storing/observing UTC alongside local schedule intent, prefer typed fields and stable IDs over human presentation text.