In this case you should not use RSS but RFC2822 which is not RSS conform but
accepted by most RSS readers.
Anyhow, Zend_Date::RSS does not mean that this should be used for all RSS
feeds, it's meant to accept RSS conform date formats which are strictly
standard conform.

That's a nice theory but rule of thumb is to create outputs which are
always valid and be relaxed with inputs. As a developer you have to
focus on the products requirement but not sending time on low level
functionality/details which should be covered by framework.

So your opinion is that when someone wants to have a RSS date, Zend_Date should create a RFC_2822 date instead of a RSS date ?

Every RSS reader accepts RSS conform dates, but some do not accept RFC 2822 dates.
What should it bring to change this to RFC 2822 ?

Also, when you want to do RSS you should use Zend_Feed and not Zend_Date...
Zend_Date is only related to dates and not to RSS feeds.

Additionally, and this is clearly documented, when you don't know which format your input has, you should use ISO8601 which accepts any format.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

Reply via email to