PHP strotime不使用Zend_提要始终显示今天的日期

PHP strotime不使用Zend_提要始终显示今天的日期,php,zend-framework,Php,Zend Framework,这个问题似乎是由Zend_Feed总是将发布日期更改为今天的日期/时间引起的 foreach($array['rss']['rows'] as $row) { try { $pubDate = strtotime($row['from']['value']); $entry = array( 'title' => "{$row['title']['value']}", 'pubDate'

这个问题似乎是由Zend_Feed总是将发布日期更改为今天的日期/时间引起的

foreach($array['rss']['rows'] as $row) {
    try {
        $pubDate = strtotime($row['from']['value']); 
        $entry = array(
            'title'       => "{$row['title']['value']}",
            'pubDate'    => "{$pubDate}",
            'link'        => "{$url}news/item/{$row['uri']['value']}",
            'description' => "{$row['content']['fvalue']}"
        );

        array_push($this->entries, $entry);
    } catch(Exception $e) {
        throw($e);          
    }
}   

$rss = array(
    'title'   => 'News',
    'link'    => $url,
    'description' => 'Latest News Articles',
    'charset' => 'ISO-8859-1',
    'entries' => $this->entries
);

$feed = Zend_Feed::importArray($rss, 'rss');
$feed->send();
from值的格式如下所示
2012-05-07 00:00:00
。当我
var_dump
$rss
数组传递给Zend_提要之前,我得到:

array(4) {
  ["title"]=> string(44) "International Horse Trials"
  ["link"]=> string(31) "http://www.horse.co.uk/"
  ["description"]=> string(78) "Location: Wetherby "
  ["pubDate"]=> string(10) "1339023600"
}
我尝试了我能想到的每一种组合,以使日期以不同的格式工作

$pubDate = gmdate(DATE_RFC822, strtotime($row['from']['value']));

您使用了错误的变量:

'lastUpdate' => 'timestamp of the publication date',

您使用了错误的变量:

'lastUpdate' => 'timestamp of the publication date',

为什么捕获异常只会再次抛出?为什么捕获异常只会再次抛出?