wp-mail.php is posting with a future timestamp
|Reported by:||lincolnadams||Owned by:|
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.