Changeset 3076

Show
Ignore:
Timestamp:
11/14/05 10:04:25 (3 years ago)
Author:
matt
Message:

Fixes #1783

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-commentsrss2.php

    r2958 r3076  
    3434            LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE comment_post_ID = '$id'  
    3535            AND $wpdb->comments.comment_approved = '1' AND $wpdb->posts.post_status IN ('publish', 'static', 'object')  
    36             AND post_date < '".date("Y-m-d H:i:59")."'  
    37             ORDER BY comment_date DESC LIMIT " . get_settings('posts_per_rss') ); 
     36            AND post_date_gmt < '" . gmdate("Y-m-d H:i:59") . "'  
     37            ORDER BY comment_date_gmt DESC LIMIT " . get_settings('posts_per_rss') ); 
    3838        } else { // if no post id passed in, we'll just ue the last 10 comments. 
    3939            $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email,  
     
    4141            $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments  
    4242            LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE $wpdb->posts.post_status IN ('publish', 'static', 'object')  
    43             AND $wpdb->comments.comment_approved = '1' AND post_date < '".date("Y-m-d H:i:s")."'   
    44             ORDER BY comment_date DESC LIMIT " . get_settings('posts_per_rss') ); 
     43            AND $wpdb->comments.comment_approved = '1' AND post_date_gmt < '" . gmdate("Y-m-d H:i:s") . "'   
     44            ORDER BY comment_date_gmt DESC LIMIT " . get_settings('posts_per_rss') ); 
    4545        } 
    4646    // this line is WordPress' motor, do not delete it.