[wp-hackers] Wp_cron and timezone
Andrew Nacin
wp at andrewnacin.com
Wed May 25 21:35:15 UTC 2011
On Tue, May 24, 2011 at 8:52 AM, Lox <lox.dev at knc.nc> wrote:
> 2011/5/24 Otto <otto at ottodestruct.com>
>
> > The value must be relative to whatever time() gives you as the current
> > time. So if time() is giving you UTC, then you should use UTC.
> >
>
> Can time() return the time other than in GMT on some installations?
No, not for a few versions of WordPress now. We force the server to GMT and
do offsets off of that. time() is always GMT, and yes, wp_schedule_event()
should always take GMT accordingly.
More information about the wp-hackers
mailing list