---
title: "Cron Expressions: Five Fields and Common Traps | VulCode"
description: "How cron reads its five fields, why day of month and day of week are joined with OR, and how the server time zone shifts the hour. Plus a cron explainer."
url: "https://vulcode.com/en/blog/cron-expressions-job-schedule"
lang: "en"
---

[Blog](https://vulcode.com/en/blog)

# Cron expressions: a job schedule written without guesswork

Five fields, the OR rule between day of month and day of week, and the server time zone that turns a 3:00 job into a 4:00 one in Poland

7 November 2026, [Michał Fox](https://vulcode.com/en/company/about)

A cron expression is five fields separated by spaces: minute, hour, day of month, month and day of week, which tell a server when to run a job. The expression `0 7 1-7 * 1` was meant to run a report at 7:00 on the first Monday of the month. In December 2026 it runs ten times: every day from 1 to 7 December, plus Mondays 14, 21 and 28 December. The cron documentation says it plainly: when both day fields are restricted, the job runs when either of them matches, not only when both do.

To run only on the first Monday, schedule the job for every Monday and let the command run only when the day of the month is 7 or less:

`crontab`

```
0 7 * * 1 [ "$(date +\%d)" -le 7 ] && /path/report.sh
```

## The five fields of a cron expression

| Field | Range | Example |
| --- | --- | --- |
| minute | 0-59 | `*/15` every 15 minutes |
| hour | 0-23 | `8-16` hours 8 to 16 |
| day of month | 1-31 | `1` the first day |
| month | 1-12 | `*` every month |
| day of week | 0-6, 0 is Sunday | `1-5` Monday to Friday |

## The hour on the server's clock

Cron reads hours in the time zone set on the server. Polish official time is UTC+1 in winter and UTC+2 in summer, so `0 3 * * 1` on a server set to UTC runs on Monday at 4:00 Polish time in winter and at 5:00 in summer.

Our [cron explainer](https://vulcode.com/en/tools/cron-expression-generator) turns an expression into a sentence. For the example above it reads "at 07:00, on Monday or on day 1, 2, 3, 4, 5, 6, 7 of the month", so the mistake shows before deployment. It also lists the next five runs in your browser's time zone and warns when an expression points at a day that does not exist, such as 30 February.

Scheduled reports and workflows, such as a Monday morning sales report, are covered on our [process automation](https://vulcode.com/en/services/process-automation) page, and you can check an expression in the cron explainer.

Was this article helpful?

Yes

No

## Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.

[Free quote](https://vulcode.com/en/quote) [Free consultation](https://vulcode.com/en/consultation)

- [hello@vulcode.com](mailto:hello@vulcode.com)

- [+48 576 043 920](tel:+48576043920)

- [discord.gg/vulcode](https://discord.gg/vulcode)
