From 69efdb90fd0ac277dbf8ab5fdf90b3be7dbacaf3 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Thu, 25 Mar 2004 02:39:16 +0000 Subject: [PATCH] now storing trackback times as localtime+gmt git-svn-id: http://svn.automattic.com/wordpress/trunk@1003 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-trackback.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-trackback.php b/wp-trackback.php index 6b298227f..76367eb6d 100644 --- a/wp-trackback.php +++ b/wp-trackback.php @@ -52,7 +52,8 @@ if ((strlen(''.$tb_id)) && (empty($HTTP_GET_VARS['__mode'])) && (strlen(''.$tb_u $user_ip = $HTTP_SERVER_VARS['REMOTE_ADDR']; $user_domain = gethostbyaddr($user_ip); $time_difference = get_settings('time_difference'); - $now = gmdate('Y-m-d H:i:s'); + $now = current_time('mysql'); + $now_gmt = current_time('mysql', 1); $comment = convert_chars($comment); $comment = format_to_post($comment); @@ -73,9 +74,9 @@ if ((strlen(''.$tb_id)) && (empty($HTTP_GET_VARS['__mode'])) && (strlen(''.$tb_u } $result = $wpdb->query("INSERT INTO $tablecomments - (comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_content, comment_approved) + (comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved) VALUES - ('$comment_post_ID', '$author', '$email', '$tb_url', '$user_ip', '$now', '$comment', '$approved') + ('$comment_post_ID', '$author', '$email', '$tb_url', '$user_ip', '$now', '$now_gmt', '$comment', '$approved') "); if (!$result) {