post_date_gmt and post_date [duplicate]

From the comments in the WP_Post class in wp-includes/post.php:

You can set the post date manually, by setting the values for ‘post_date’ and ‘post_date_gmt’ keys.

So if you’re adding a post programmatically, and you want a date attached, you should set both keys. (If you leave them blank, WordPress will use the appropriate current date for both.)