[wp-hackers] wp_cron - odd behavior

Jeff Rose jeff at jeffrose.ca
Fri Feb 18 05:14:04 UTC 2011

Oh great WordPress guru's I need some help.

I'm writing a plugin that will allow a user to add an event (oy, more event
plugins) and schedule a reminder email for it.I have 2 problems.

1) Sometimes it seems that despite passing in the correct timestamp, the
reminder is set to Jan 1, 1970. I've stepped through in a debugger and a
valid timestamp is passed to wp_schedule_single_event.

2) When adding multiple single reminders (1 hour before, 2 hours before, 1
day before), often only 1 of the reminders is registered. Again, valid
timestamps, more than 10 minutes apart etc.

Can anyone suggest why this might happen?

I'm running on a local XAMPP install and it "could" be a timing issue.
WordPress 3.0.5 install.

Jeff Rose

More information about the wp-hackers mailing list