ZF-5869: Zend_Date::isDate using format
Description
using Zend_Date::isDate() with format. Unexpected result:
$bool = Zend_Date::isDate("1s1-2008", 'MM-yyyy');
Zend_Debug::dump($bool);
result: {color:red} bool(true) {color}
I assume this is a bug ?!
Comments
Posted by Thomas Weidner (thomas) on 2009-02-23T14:48:13.000+0000
No, because 1-2008 is a date according to MM-yyyy. Leading and following parts are stripped as this only checks if Zend_Date can handle this date.
Use additionally regex or string-length validator when you have to limit the date to a stricter value.
Posted by Thomas Weidner (thomas) on 2009-02-25T03:32:20.000+0000
Closing as non-issue