Timestamp in RSS feed
Posted: Mon Aug 30, 2010 10:34 am
I noticed that the time in the RSS feed on my site was off. Basically the contents of <pubdate></pubdate> is given as the entry timestamp after application of server offset but with the pre-offset timezone. The result is an incorrect time in the RSS feed. The bug can be fixed by modifying this line in functions_rss.inc.php:
With this:
Code: Select all
$entry['feed_timestamp_r'] = date('r', serendipity_serverOffsetHour($entry['timestamp']));
Code: Select all
$entry['feed_timestamp_r'] = date('r', $entry['timestamp']);