Changeset 997

Show
Ignore:
Timestamp:
03/25/04 01:56:02 (4 years ago)
Author:
michelvaldrighi
Message:

now commenting in localtime+gmt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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