• Resolved hbuksbaum

    (@hbuksbaum)


    I have a site where I used WPC to set up a cron event for every day at 6:30 am. I’m unsure if I set the timezone in WP when I configured the initial event. Eventually, I set the timezone in WP, and it’s been running like clockwork for months. Yesterday (3/12/23) was daylight savings in the US, and I noticed all my events are an hour off. I’m happy to update them manually, but I wonder what could have caused this. Could it be because the initial event may have been configured before I set the WP timezone?

    I found this and I’m wondering if it’s relevant. https://stackoverflow.com/questions/53158188/wp-schedule-event-and-daylight-savings

    • This topic was modified 2 years ago by hbuksbaum. Reason: Added a link
Viewing 1 replies (of 1 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    When an event is scheduled in the WP-Cron system in WordPress it gets stored with the UTC timestamp of the next time that it is due to run. UTC is a coordinated and fixed time (for all intents and purposes it’s the same as GMT) that’s not affected by timezones or daylight savings.

    This means after a change to daylight saving in the timezone that your site is using, it will appear that it’s shifted by an hour, but in fact it’s still scheduled according to the correct UTC time.

    This isn’t anything specific to WP Crontrol. And yes, timezones and daylight savings are a nightmare.

Viewing 1 replies (of 1 total)
  • The topic ‘Daylight Savings Time’ is closed to new replies.