OdooWiki OCA HUB

Cron daylight saving time resistant

cron_daylight_saving_time_resistant folder_open OCA/server-tools open_in_new
Tools License: AGPL-3

This module adjust cron to run at fixed hours, local time.

Without this module, when a daylight saving time change occur, the cron will not take the hour change in account.

With this module, when a daylight saving time change occur, the offset (+1 or -1 hour) will be applied.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a checkbox on scheduled actions (cron jobs) so they keep running at the same local time even when daylight saving time changes the clock by one hour.

When you open a scheduled action in Odoo (Settings > Technical > Scheduled Actions), you now see an extra checkbox called daylight saving time resistant. Tick it for jobs that must always run at the same local hour, for example a daily report at 8:00 in the morning.

  • Without the option, a job scheduled in local time can drift by one hour after the twice-a-year clock change.
  • With the option ticked, the module detects the offset change and shifts the next run time so the job still fires at the same local hour.

The module only touches the scheduled actions model ir.cron and its form view. It does not create new menus or reports. The adjustment happens automatically when Odoo processes the job: the system compares the time zone offset before and after the next planned run, and if the offset changed and the job is due, it updates the stored next execution time accordingly. No emails, no manual steps and no other business documents are affected.

Depends on

base
Models and fields (1)
  • ir.cron · extends an existing modeldaylight_saving_time_resistant

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/server-tools.

terminal Installation and usage

OCA documentation · Odoo 16.0
  • Go to the menu Settings => Technical => Automation => Scheduled Actions Then you can check the check box Daylight Saving Time Resistant

No verified information in OCA: Installation, Usage.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.