If you have ever watched a billing or cleanup job fire on the wrong day, odds are you hit one of three classic cron specification traps.
1. Restricting Both Day-of-Month and Day-of-Week Evaluates as OR
Many engineers write this expecting a job to run "only when the 15th falls on a Monday":
0 9 15 * 1 In Vixie cron and Kubernetes CronJob, whenever both field 3 (day-of-month) and field 5 (day-of-week) are non-wildcard, the scheduler triggers when either matches—meaning it runs on the 15th of every month and every single Monday. To enforce an AND, schedule 0 9 15 * * and guard the weekday inside the entrypoint script.
2. 5-Field (Linux / K8s / GitHub Actions) vs 6-Field (Spring / Quartz)
Copying a 6-field Spring @Scheduled("0 0 3 * * *") expression into a 5-field Kubernetes CronJob either fails validation or shifts every field left by one position.
3. Silent UTC Container Defaults & Overlapping Runs
Writing 0 2 * * * without spec.timeZone runs at 02:00 UTC (mid-morning peak traffic in Asia/Pacific). Always set explicit timeZone plus concurrencyPolicy: Forbid on long-running jobs so slow runs do not pile up.
Sanity-Checking Cron Expressions Before Deploying
- Browser Cron Explainer (0B upload): https://global-utils.com/en/cron-explainer
- Browser Cron Generator: https://global-utils.com/en/cron-generator
- Distributed CronJob HA Suite: https://global-utils.com/en/assets/distributed-cronjob-ha-scheduler-suite

