Wordpress RSS issues
February 22, 2005 3:57 PM   Subscribe

Help me fix the timestamps in my Wordpress RSS feed...

I posted this question to the Wordpress forums last week but, as per usual over there, nobody responded.

In my Wordpress settings, the time zone offset is UTC -7 (Mountain time) and this is correctly reflected on the times in my blog entries. However while the time in my RSS feed is also correct, the offset is not (instead of -7, it is zero).

This means that if I post something at 1:34pm Mountain Time, it is listed as 1:34pm UTC in my RSS feed.

For example, a sample pubdate from a recent entry in my feed is:
Thu, 17 Feb 2005 13:34:40 +0000

But it SHOULD be:
Thu, 17 Feb 2005 13:34:40 -0007

BTW - I'm using the 1.5 Strayhorn release of Wordpress.
posted by sanitycheck to Computers & Internet (4 answers total)
 
in the wp-rss2.php file change get_the_time('Y-m-d H:i:s') to get_post_time('Y-m-d H:i:s', true)
posted by drscroogemcduck at 4:07 PM on February 22, 2005


Also, for what it's worth, I believe it should be:
Thu, 17 Feb 2005 13:34:40 -0700

-0007 would mean a 7 minute offset.
posted by Remy at 4:25 PM on February 22, 2005


Why WordPress over Movable Type? Just curious. Not to derail.
posted by xmutex at 4:48 PM on February 22, 2005


Response by poster: Someone eventually answered my question on the Wordpress boards:

"I've noticed the same thing, even on photomatt.net. You can hand-modify wp-rss2.php with the correct time zone setting and this will fix the problem. Use a pubDate offset of -0700 in the section. Leave the pubDate offset alone in the section."

xmutex: I am more comfortable with php than perl, so I am more comfortable mucking around with Wordpress than MT. If I was doing something more complicated (e.g. multiple blogs, etc.). I might switch back to MT, but right now Wordpress meets my needs perfectly.

posted by sanitycheck at 10:43 PM on February 26, 2005


« Older Is my transmisison broken?   |   Dining in Austin Newer »
This thread is closed to new comments.