Support » How-To and Troubleshooting » [Resolved]RSS Feeds showing the wrong date

[Resolved]RSS Feeds showing the wrong date

  • After upgrading to 2.5, my RSS feeds showed the wrong date (pubdate) for the items. When inspecting the feed xml, the site itself had the right pubdate – it was just the posts.

    So, I found a method of fixing it using some old information that I gathered online.

    Go into your wp-includes directory and edit the feed-rss2.php file.

    I changed the line to now read:

    <pubDate><?php echo mysql2date('r', get_the_time('Y-m-d H:i:s')); ?></pubDate>

    Here’s a diff from old to new:

    < <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
    > <pubDate><?php echo mysql2date('r', get_the_time('Y-m-d H:i:s')); ?></pubDate>

  • The topic ‘[Resolved]RSS Feeds showing the wrong date’ is closed to new replies.