[wp-hackers] wp_cron - What timezone do they run under?

Scott Kingsley Clark scott at skcdev.com
Thu Mar 10 16:45:02 UTC 2011


Oh wow, was there a reason it doesn't use the WP timezone since 
everywhere else it is?


Best Regards,

Scott Kingsley Clark
Developer / Consultant
SKC Development, LLC

------------------------------------
E-mail: scott at skcdev.com
Website: http://skcdev.com/
Phone: 214.233.4048
Fax: 214.260.1426

AIM / Yahoo / Skype: sc0ttkclark
Google Talk / Windows Live: scott at skcdev.com
IRC: sc0ttkclark / irc.freenode.net
------------------------------------



On 3/10/2011 10:41 AM, Otto wrote:
> On Thu, Mar 10, 2011 at 9:39 AM, Scott Kingsley Clark<scott at skcdev.com>  wrote:
>> If I supply a timestamp for a new job, what timezone is that timestamp run
>> under? Is it GMT? Or does it run based on the timezone used in the WP
>> settings?
>
> The WP cron system uses the output of the time() function as the base
> which it checks against.
>
> Therefore, if you need precisely scheduled items, you should schedule
> them as offsets against the current value of time(). time() + 86400
> for 1 day in the future from "now", sort of thing.
>
> -Otto


More information about the wp-hackers mailing list