When your RSS feed does not conform the RSS specification then it's no standard conform RSS feed :-)

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.

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

----- Original Message ----- From: "Arthur M. Kang" <[email protected]>
To: <[email protected]>
Sent: Saturday, June 13, 2009 8:13 AM
Subject: [fw-general] Small Change to Zend_Date


Is it possible to get a small change included into Zend_Date?

The RSS regexp is requiring two digits for the day but many RSS feeds
are spitting out 1 digit.

Line #2324 of Zend_Date:
$result =
preg_match('/^\w{3},\s(\d{2})\s(\w{3})\s(\d{2,4})\s(\d{1,2}):(\d{2}):(\d{2})\s.{1,21}$/',
$date, $match);

Could we get that changed to:
$result =
preg_match('/^\w{3},\s(\d{*1,*2})\s(\w{3})\s(\d{2,4})\s(\d{1,2}):(\d{2}):(\d{2})\s.{1,21}$/',
$date, $match);

I think it would be helpful to more than just me...

Arthur


Reply via email to