diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-01-09 11:30:05 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-01-09 11:30:05 +0000 |
| commit | 819f131230b6d2e4ff88a8773eef754228989ffc (patch) | |
| tree | 547908e700cf516755e371de9a2149ff5a772832 /wp-includes/comment.php | |
| parent | 90888943466530c65823eac7e07e5a6f1c8ab5d5 (diff) | |
| download | wordpress-mu-819f131230b6d2e4ff88a8773eef754228989ffc.tar.gz wordpress-mu-819f131230b6d2e4ff88a8773eef754228989ffc.tar.xz wordpress-mu-819f131230b6d2e4ff88a8773eef754228989ffc.zip | |
WP Merge to rev 4709
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@835 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/comment.php')
| -rw-r--r-- | wp-includes/comment.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/wp-includes/comment.php b/wp-includes/comment.php index c9e47cb..19218a7 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -331,7 +331,7 @@ function wp_insert_comment($commentdata) { if ( ! isset($comment_date) ) $comment_date = current_time('mysql'); if ( ! isset($comment_date_gmt) ) - $comment_date_gmt = gmdate('Y-m-d H:i:s', strtotime($comment_date) ); + $comment_date_gmt = get_gmt_from_date($comment_date); if ( ! isset($comment_parent) ) $comment_parent = 0; if ( ! isset($comment_approved) ) @@ -460,6 +460,8 @@ function wp_update_comment($commentarr) { $comment_content = apply_filters('comment_save_pre', $comment_content); + $comment_date_gmt = get_gmt_from_date($comment_date); + $result = $wpdb->query( "UPDATE $wpdb->comments SET comment_content = '$comment_content', @@ -467,7 +469,8 @@ function wp_update_comment($commentarr) { comment_author_email = '$comment_author_email', comment_approved = '$comment_approved', comment_author_url = '$comment_author_url', - comment_date = '$comment_date' + comment_date = '$comment_date', + comment_date_gmt = '$comment_date_gmt' WHERE comment_ID = $comment_ID" ); $rval = $wpdb->rows_affected; |
