You can edit the feed and put {feed:date} in the body template.
ETA: oops - I forgot we're talking about your custom reader script. Let me look at that...
OK, try this: Change function character_data() to:
Code:
function character_data($parser, $data)
{
global $is_item, $tag, $title, $description, $link, $date;
if ($is_item)
{
switch ($tag)
{
case "TITLE":
$title .= $data;
break;
case "DESCRIPTION":
$description .= $data;
break;
case "LINK":
$link .= $data;
break;
case "PUBDATE":
$date .= $data;
break;
}
}
}
Then at the beginning of the end_element function:
Code:
function end_element($parser, $name)
{
global $is_item, $title, $description, $link, $rss_output, $date;
then use $date in the html output. (I haven't tested this at all).