ZF-9783: Zend_Date::_getLocalizedToken incorrectly translates time format into date format

Description

In Zend/Date.php (version 1.10.4) lines 4910 to 4916, the formats for TIME_LONG, TIME_MEDIUM and TIME_SHORT are incorrectly translated into a date format. The strings 'date' should be replaced by 'time'.

This bug is visible when trying to test a time input with Zend_Date::isValid(), for example: Zend_Date::isDate('16:00', Zend_Date::TIME_SHORT) returns false, should return true.

Comments

Fixed with r22071

Note that your patch does not work. Next time it would be great if you test that your change really works before proposing it.