From 1635f4335a385a2ff7ceb0e68f80085849adb42f 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: https://develop.svn.wordpress.org/trunk@1003 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-trackback.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-trackback.php b/wp-trackback.php index 6b298227fd..76367eb6d1 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) {