Title: wp_insert_post post_date_gmt problem
Last modified: August 20, 2016

---

# wp_insert_post post_date_gmt problem

 *  [scrollpost](https://wordpress.org/support/users/scrollpost/)
 * (@scrollpost)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/wp_insert_post-date-problem/)
 * I am auto posting into WordPress from RSS feeds.
    I can’t set the post_date or
   post_date_gmt to the date in the RSS feed item. I have researched this but with
   no success.
 * I read on this forum that WordPress wants the date in **ISO 8601**.
 * I am capturing the data going into WordPress by also adding it to custom fields.
 * The RSS feed contains the date as follows which I believe to be the standard 
   format:
    **Mar 16 2012 07:26:02** After `$my_post_date= gmdate('c', strtotime(
   $rss_date));` I get the following: **2012-03-16T07:26:02+00:00**
 * Nevertheless I am still getting for post_date the time when the post was published
   by WordPress.
 * Cheers
    Jack

The topic ‘wp_insert_post post_date_gmt problem’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [scrollpost](https://wordpress.org/support/users/scrollpost/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/wp_insert_post-date-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
