RSS pubdate not updated with UTC adjustment
-
I live in a GMT+1 zone (Denmark) and would like to have the UTC adjusted to relect this so that postings are shown correctly in RSS feeds to my subscribers.
Also, my webhost resides in the US – but as far as I can tell, this should not affect WP in any way since it relies on UTC?At any rate, I have in the WP admin page adjusted the time of the blog to be UTC +2 hours (this is the defacto time difference between the WP UTC time and my actual time), and the correct time is displayed in WP admin area AND also the timestamp on posts are correct.
However, when I access my RSS feed, the date is shown as (for instance):
<pubDate>Wed, 13 Jun 2007 11:10:04 +0000</pubDate>
When in fact it should be:
<pubDate>Wed, 13 Jun 2007 11:10:04 +0200</pubDate>
since I have made the changes to WP to adjust for the time difference – apparently this is ignored for the RSS feeds.
I am no PhP genius, but when I check the 2 pages being used to generate the rss (wp-rss.php and wp-rss2.php) I can see that pubdate is formatted as follows:
<pubDate><?php echo mysql2date(‘D, d M Y H:i:s +0000’, get_post_time(‘Y-m-d H:i:s’, true), false); ?></pubDate>
Does this mean that the +0000 is hard-coded and that the adjustments to UTC I make are in fact ignored?
- The topic ‘RSS pubdate not updated with UTC adjustment’ is closed to new replies.