You should ask in core or webservices.
I can not say which date input Zend_Feed accepts.
But the format RFC_822 which Zend_Date outputs on this constant is defined
by RFC.
I expect that this is a Zend_Feed issue or that Zend_Feed does not accept
the RFC 822 format.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com----- Original Message -----
From: "Michał Zieliński" <
[hidden email]>
To: <
[hidden email]>
Sent: Wednesday, June 03, 2009 1:28 PM
Subject: [fw-i18n] Timezone issue with Zend_Feed
I try to add pubDate with Zend_Date to get proper +0200 (Poland)
Here is my code:
$date = new Zend_Date($news->date, Zend_Date::ISO_8601, 'pl');
$date->get(Zend_Date::RFC_822);
But trying to add this one I receive warning:
gmdate() expects parameter 2 to be long, string given in...
ZF-1.7.8\Zend\Feed\Rss.php on line 421
I figured out that strtotime works but it doesn`t seem to use my timezone.
In my RSS I get +0000 instead of +0200.
Thanks for any clues how should I use Zend_Date to provide correct date for
Zend_Feed. Or maybe this is Zend_Feed issue?
Regards,
Michał
--
View this message in context:
http://www.nabble.com/Timezone-issue-with-Zend_Feed-tp23849756p23849756.htmlSent from the Zend I18N/Locale mailing list archive at Nabble.com.