Skip to content

Commit 3ad5bc3

Browse files
committed
git-svn-id: https://develop.svn.wordpress.org/trunk@3076 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9385ddc commit 3ad5bc3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

wp-commentsrss2.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
$wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments
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,
4040
comment_author_url, comment_date, comment_date_gmt, comment_content, comment_post_ID,
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.
4747
if ($comments) {

0 commit comments

Comments
 (0)