wp_reschedule_event & daylight saving
|Reported by:||MattyRob||Owned by:|
When a recurring event is established using the WP cron functions the function takes a Unix timestamp and a recurrence interval.
In the situation where daylight saving changes the local time, the timing of an event can change by an hour. So, if a database backup is set to run at midnight when the clocks change this can start to happen at 11pm or 1am instead since the timing of the event is based on an initial static time (Unix timestamps reference point is January 1, 1970) and a static interval period.
An enhancement to the cron functions would be to account for an obey daylight saving changes so that events schedule for midnight actually occur at midnight irrespective of the time of year.
Change History (17)
- Keywords reporter-feedback removed
- Resolution set to invalid
- Status changed from new to closed
comment:6 SergeyBiryukov — 16 months ago
- Milestone set to Awaiting Review
- Resolution invalid deleted
- Status changed from closed to reopened