[wp-trac] [WordPress Trac] #17957: wp_reschedule_event & daylight saving

WordPress Trac noreply at wordpress.org
Thu Apr 11 23:18:10 UTC 2013


#17957: wp_reschedule_event & daylight saving
-------------------------+------------------------------
 Reporter:  MattyRob     |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Cron         |     Version:  3.2
 Severity:  normal       |  Resolution:
 Keywords:  needs-codex  |
-------------------------+------------------------------

Comment (by smerriman):

 I don't quite understand the followup comments to this ticket, but the
 original point is still valid.

 For recurring events, wp_schedule_event is called once with the 'daily'
 argument. Regardless of how the initial timestamp is calculated, every
 future calculation is based on adding 86400 to the previous timestamp, so
 when daylight savings kicks in the event will run at a different hour
 local time.

 I would imagine every use of the 'daily' argument would want the event to
 run at a specific hour, local time. To achieve that currently you would
 have to basically ignore the recurring nature of wp_schedule_event and
 manually reschedule the event each day at the right hour to ensure this
 didn't happen.

 While changing the functionality would require a few 'hacks', it would
 make more logical sense to me.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17957#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list