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

git-svn-id: http://svn.automattic.com/wordpress/trunk@2969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-10-28 04:34:49 +00:00
parent 158b6eafd3
commit f081b601cc
1 changed files with 1 additions and 1 deletions

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 )