If post_date_gmt is not supplied, derive it from post_date instead of current time.

git-svn-id: https://develop.svn.wordpress.org/trunk@2969 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-10-28 04:34:49 +00:00
parent b127cd82af
commit de8d78270a

View File

@ -57,7 +57,7 @@ function wp_insert_post($postarr = array()) {
if (empty($post_date))
$post_date = current_time('mysql');
if (empty($post_date_gmt))
$post_date_gmt = current_time('mysql', 1);
$post_date_gmt = get_gmt_from_date($post_date);
if ( empty($comment_status) ) {
if ( $update )