From de8d78270a3e21afbece9c0e278ca5b3aca14e0a Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@2969 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 )