Minuteform / Platform guides
Kubernetes CronJob: set the time zone explicitly
Set spec.timeZone: America/New_York next to spec.schedule: "30 9 * * 1-5" for weekday jobs at 9:30 AM New York time. The time-zone field has been stable since Kubernetes 1.27. Without it, the controller's local time zone is used. Kubernetes time-zone documentation.
A complete CronJob example
apiVersion: batch/v1
kind: CronJob
metadata:
name: weekday-check
spec:
schedule: "30 9 * * 1-5"
timeZone: America/New_York
concurrencyPolicy: Forbid
startingDeadlineSeconds: 300
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: check
image: busybox:1.37
command: ["date", "-u"]This example prints a timestamp. Before using it for a real task, choose your own container, command and operational settings. You can validate against your cluster without creating the resource with kubectl apply --dry-run=server -f weekday-check.yaml; this still requires access to that cluster.
Settings to check before applying
| Setting | Effect |
|---|---|
timeZone | Use this field; embedding TZ or CRON_TZ in the expression is rejected. |
concurrencyPolicy: Forbid | Skip a new run while the same CronJob's previous Job is still active. |
startingDeadlineSeconds: 300 | Allow up to five minutes to start a missed occurrence. Choose a deadline that fits your task. |
Job creation is approximate: an occurrence can be missed or duplicated, so make tasks idempotent. Kubernetes CronJob behavior and limitations.
Preview boundary: Minuteform shows matching clock minutes using your browser's time-zone data. It cannot see controller outages, running Jobs or cluster time-zone data. Check Job events and logs after applying your manifest.
Related guides
GitHub Actions schedules · Kubernetes CronJob time zones · AWS EventBridge cron · Cron and daylight saving