https://www.icyphoenix.com/viewtopic.php?f=35&t=7632&p=51453#p51453
-----------------------------------
Xusqui
Thu 10 Feb, 2011 20:36

RSS Bug Fixed (PubDate)
-----------------------------------
Hile, neighbours and friends.

When you use the news_rss.php to view a feed of the posted news, you get a couple of errors.

First One.
PubDate attribute uses the IP date function to create the publication date. Specs of RSS stands that the format for PubDate attribute must be RFC 822, so you get an error when reading the feed with some feed readers (i.e. google feedburner, when trying to post messages in twitter, can't do the right way).

To solve this I did the following modification

Open includes/news.php

Find
[code]'RFC_POST_DATE' => create_date_ip('r', $article['post_time'], $timezone, true),[/code]

Replace with
[code]'RFC_POST_DATE' =>  date ("r", $article['topic_time']),//create_date_ip('r', $article['post_time'], $timezone, true),[/code]


Second one
when you look at the source code of the feed, the attribute LastBuildDate is empty.
Here is what I did to fix that (even it's not a perfect modification)

Open templates/default/news_200_rss_body.tpl

Find
[code]	<lastBuildDate>{LAST_BUILD}</lastBuildDate>[/code]

Replace with
[code]	<lastBuildDate>{PUB_DATE}</lastBuildDate>[/code]

I did these all because I want the news to be published into a twitter account, and I use Twitterfeed to do that, if dates are not posted as supposed, I can't get my tweets!!

Greetz!!


