Make WordPress Core


Ignore:
Timestamp:
03/25/2004 01:56:02 AM (21 years ago)
Author:
michelvaldrighi
Message:

now commenting in localtime+gmt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments-post.php

    r984 r997  
    4747}
    4848
    49 
    50 $now = gmdate('Y-m-d H:i:s');
     49$now = current_time('mysql');
     50$now_gmt = current_time('mysql', 1);
    5151
    5252
     
    8686
    8787    $wpdb->query("INSERT INTO $tablecomments
    88     (comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_content, comment_approved)
     88    (comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved)
    8989    VALUES
    90     ('$comment_post_ID', '$author', '$email', '$url', '$user_ip', '$now', '$comment', '$approved')
     90    ('$comment_post_ID', '$author', '$email', '$url', '$user_ip', '$now', ,'$now_gmt', '$comment', '$approved')
    9191    ");
    9292
Note: See TracChangeset for help on using the changeset viewer.