Opened 16 years ago
Closed 16 years ago
#9162 closed defect (bug) (fixed)
wp-mail.php is posting with a future timestamp
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.8 | Priority: | normal |
Severity: | major | Version: | 2.7 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
WP-Mail is posting timestamp several hours into the future depending on one's time zone. The problem seems to be due to a line 130 of wp-mail.php:
$post_date = gmdate('Y-m-d H:i:s', $ddate_U + $time_difference);
The problem is those who have negative GMT time zones will see their postings made at future times instead of the correct times. Those who have postives GMT zones are probably not affected.
A temporary workaround is to modify $ddate_U + $time_difference); so that it subtracts instead of adds: $post_date = gmdate('Y-m-d H:i:s', $ddate_U - $time_difference);
However, a more permanent fix is needed.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Removes absint