Title: Post by Email &#8211; Wrong Date
Last modified: August 19, 2016

---

# Post by Email – Wrong Date

 *  Resolved [alanthonyc](https://wordpress.org/support/users/alanthonyc/)
 * (@alanthonyc)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/post-by-email-wrong-date/)
 * I turned on the post by email feature and was able to get it working. However,
   any posts I send in by email are stamped with the wrong date and time.
 * The posts are being stamped 16 hours ahead of where I am. I’m at UTC-8. My mail
   server is UTC-7.
 * thanks any help!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [jmat](https://wordpress.org/support/users/jmat/)
 * (@jmat)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/post-by-email-wrong-date/#post-999835)
 * Also having the same problem when posting via email. If the timezone is changed
   to a positive offset of UTC then the post time is correct and the posts order
   is correct for all posts whether made through email or the control panel. But
   if the timezone is change to a negative offset of UTC, then post made through
   email are automatically converted to the corresponding positive offset; while
   post made through the control panel remain at the correct negative offset, thus
   improperly ordering all posts.
 *  [jmat](https://wordpress.org/support/users/jmat/)
 * (@jmat)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/post-by-email-wrong-date/#post-999836)
 * Just decided to take a look at wp-mail.php
    line #130
 * `$post_date = gmdate('Y-m-d H:i:s', $ddate_U + $time_difference);`
 * change the + sign to a – sign and the time stamps seem to come out correct.
 * Caveat though. I’m not a programmer and don’t know PHP. Don’t know if this will
   mess up anything else. Someone should verify. As far as I can tell, my install
   is working OK and the time stamps are correct.
 *  Thread Starter [alanthonyc](https://wordpress.org/support/users/alanthonyc/)
 * (@alanthonyc)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/post-by-email-wrong-date/#post-999837)
 * Hey, thanks for the tip. I just did the same thing and now get the correct time
   stamp.
 * cheers!
 *  [dmatich](https://wordpress.org/support/users/dmatich/)
 * (@dmatich)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/post-by-email-wrong-date/#post-999872)
 * Thanks for this…I was having the same issue and the change seems to have cleared
   it up.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Post by Email – Wrong Date’ is closed to new replies.

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [dmatich](https://wordpress.org/support/users/dmatich/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/post-by-email-wrong-date/#post-999872)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
