Cron every even hour: the expression, explained, in Next.js / Vercel
The cron expression for “every even hour” is 0 0-22/2 * * *. This page shows what each field does, the next five times it will fire, the mistake most people make with it, and a working Next.js / Vercel example you can paste.
The expression
| Field | Value | Meaning |
|---|---|---|
| minute | 0 | exactly 0 |
| hour | 0-22/2 | every 2 hours, from 0 to 22 |
| day of month | * | every day of month |
| month | * | every month |
| day of week | * | every day of week |
Next five runs (UTC, from now)
- 2026-09-18 00:00 UTC
- 2026-09-18 02:00 UTC
- 2026-09-18 04:00 UTC
- 2026-09-18 06:00 UTC
- 2026-09-18 08:00 UTC
Mistakes people make with this schedule
- "0-22/2" and "*/2" in the hour field are identical: both start at 0 and step by 2. Pick one spelling and keep it across files.
- Assuming the server clock is your clock. Cron runs in the machine’s timezone unless the runtime says otherwise; the examples here are UTC.
- No lock around a job that might overlap itself, and no alert when it silently stops. That second one is what Supercrontab is for.
Run it in your stack
// vercel.json
{
"crons": [
{ "path": "/api/cron/run", "schedule": "0 0-22/2 * * *" }
]
}Vercel crons run in UTC and, on the Hobby plan, at most once a day. For anything more frequent call the route from Supercrontab.
Questions
Does 0 0-22/2 * * * run in my local time?
Only if the scheduler is configured for it. crontab uses the system timezone; Vercel and GitHub Actions always use UTC; Laravel and node-cron take a timezone option. In Supercrontab the timezone is a field on the job.
What if the previous run is still going?
Classic cron starts the next run anyway. Add a lock (flock on Linux, withoutOverlapping() in Laravel) or let Supercrontab skip the tick while the previous request is open.
Is there a shorter way to write this?
No. The five-field form is the shortest portable version.