#14391 closed defect (bug) (wontfix)
Cron Jobs work on wrong time
| Reported by: | danielhuesken | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Cron API | Version: | 3.0 |
| Severity: | normal | Keywords: | cron |
| Cc: | Focuses: |
Description
Cron jobs runs on German Pages 2 Houers later as Scheduled!
if I'm change the wp-cron.php the line:
$local_time = time();
to
$local_time = current_time('timestamp');
its working corectliy.
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The cron API uses GMT time, not local time. Note time() in wp-includes/cron.php and check_and_publish_future_post() trying to strtotime() the post's post_date_gmt.