ZF-7705: Zend_Validate_Date - Add Format to Zend_Validate_Date::FALSEFORMAT error message
Description
The error messages are inconsistent.
The NOT_YYYY_MM_DD displays the format in the error message, however a custom format failure displays a similar message, less the format.
Since Zend_Validate_Abstract can substitute tokens other than just the %value%, it might be worth adding the format to FALSEFORMAT, to bring it into line with NOT_YYYY_MM_DD.
self::NOT_YYYY_MM_DD => "'%value%' is not of the format YYYY-MM-DD", -vs- self::FALSEFORMAT => "'%value%' does not fit given date format"
Comments
Posted by Thomas Weidner (thomas) on 2009-08-29T01:45:30.000+0000
Fixed with r17874 for ZF 1.10