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

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 24 11:28:40 UTC 2012


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

Comment (by MattyRob):

 Just reconsidering the above...

 Firstly, perhaps the more appropriate codex pages to consider are:
 http://codex.wordpress.org/Function_Reference/wp_schedule_single_event
 http://codex.wordpress.org/Function_Reference/wp_schedule_event

 The former is using time()+3600 in the example while the latter uses
 current_time('timestamp').

 current_time('timestamp') could be in the future or past by up to 12 hours
 if I'm understanding the time offsets correctly, so perhaps we should be
 encouraging use of time() plus an interval to ensure a future date is
 used.

 Also, as this has been marked with 'needs-codex' does it need re-opening
 so it doesn't get lost?

 (I'm quite happy to make codex changes but don't want to move the
 recommendations contrary to the core developers opinions)

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


More information about the wp-trac mailing list