somewhere in the forum was a changed rss.php for displaying date and time in the feed for wb 2.8.1.
i have now changed the rss.php for wb 2.8.2 an it works.
this is the changed part:
original:
//Generating the news items
while($item = $result->fetchRow()){
$description = stripslashes($item["content_short"]);
// wb->preprocess() -- replace all [wblink123] with real, internal links
$wb->preprocess($description);
?>
<item>
<title><![CDATA[<?php echo stripslashes($item["title"]); ?>]]></title>
<description><![CDATA[<?php echo $description; ?>]]></description>
<link><?php echo WB_URL.PAGES_DIRECTORY.$item["link"].PAGE_EXTENSION; ?></link>
<pubDate><?PHP echo date("D, d M Y", $item["published_when"]); ?></pubDate>
<guid><?php echo WB_URL.PAGES_DIRECTORY.$item["link"].PAGE_EXTENSION; ?></guid>
</item>
<?php } ?>
changed to:
//Generating the news items
while($item = $result->fetchRow($result)){
//$item_date = date("r",$item['published_when']);
if(date("h:i", $item['published_when']) == '12:00') {
//if 'published_when' is NOT changed manually (time = '12:00')
//generating new timestamp with date from published_when and time from posted_when
$newdateandtime = date("d F Y", $item['published_when']).' '.date("h:i A", $item['posted_when']);
$newdateandtime = strtotime($newdateandtime);
$item_date = date("r",$newdateandtime);
} else {
//if 'published_when' is changed by hand
//just take it like it is
$item_date = date("r",$item['published_when']);
};
?>
<item>
<title><![CDATA[<?php echo stripslashes($item["title"]); ?>]]></title>
<pubDate><![CDATA[<?php echo $item_date; ?>]]></pubDate>
<description><![CDATA[<?php echo stripslashes($item["content_short"]); ?>]]></description>
<guid><?php echo WB_URL.PAGES_DIRECTORY.$item["link"].PAGE_EXTENSION; ?></guid>
<link><?php echo WB_URL.PAGES_DIRECTORY.$item["link"].PAGE_EXTENSION; ?></link>
</item>
<?php } ?>
complete rss.php for news-module 3.5.5 attached.