Make WordPress Core


Ignore:
Timestamp:
04/19/2005 12:23:55 AM (21 years ago)
Author:
ryan
Message:

Use UTC in comments rss feed. ​http://mosquito.wordpress.org/view.php?id=1256 Props: nbachiyski

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-commentsrss2.php

    r2519 r2543  
    3131                if (is_single() || is_page()) {
    3232                        $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email,
    33                         comment_author_url, comment_date, comment_content, comment_post_ID,
     33                        comment_author_url, comment_date, comment_date_gmt, comment_content, comment_post_ID,
    3434                        $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments
    3535                        LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE comment_post_ID = '$id'
    … …  
    3939                } else { // if no post id passed in, we'll just ue the last 10 comments.
    4040                        $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email,
    41                         comment_author_url, comment_date, comment_content, comment_post_ID,
     41                        comment_author_url, comment_date, comment_date_gmt, comment_content, comment_post_ID,
    4242                        $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments
    4343                        LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE ($wpdb->posts.post_status = 'publish' OR $wpdb->posts.post_status = 'static')
    … …  
    5252                <title>by: <?php comment_author_rss() ?></title>
    5353                <link><?php comment_link() ?></link>
    54                 <pubDate><?php comment_time('r'); ?></pubDate>
     54                <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_comment_time('Y-m-d H:i:s', true), false); ?></pubDate>
    5555                <guid><?php comment_link() ?></guid>
    5656                        <?php
Note: See TracChangeset for help on using the changeset viewer.