From f081b601ccf486efe89ef48768c58c9629ef3e23 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 28 Oct 2005 04:34:49 +0000 Subject: [PATCH] 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 --- wp-includes/functions-post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index ad37b746e1..6da26fbdac 100644 --- a/wp-includes/functions-post.php +++ b/wp-includes/functions-post.php @@ -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 )