Discussion:
Zend_Feed and Date
Dirk Schwarz
2008-05-20 06:27:43 UTC
Permalink
Hi List,

I have a problem with the Zend_Feed and dates. I use the following code:

$date = new Zend_Date();
$date->set($news[$i]->date);

$feed['entries'][] = array('title' => $news[$i]->title, //required
'link' => 'http://www.test.com',
'description' => $news[$i]->title,
'lastUpdate' =>$date->get(Zend_Date::RSS));

Why is the date (<updated></updated>) in the following output empty? I
checked the array, and the data is ok.

-> ["lastUpdate"]=> string(31) "Tue, 20 May 2008 08:26:30 +0200"



<entry>
<id>http://localhost/web_3.0/htdocs/download/press/pr_20080430_E56618_de.pdf</id>
<title><![CDATA[Identity Management Symposium]]></title>
<updated></updated>
<link rel="alternate"
href="http://localhost/web_3.0/htdocs/download/press/pr_20080430_E56618_de.pdf"/>
<summary><![CDATA[Identity Management Symposium]]></summary>
</entry>

Any Ideas?

Regards
Dirk

Loading...