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

Issue Type: Bug Created: 2010-05-01T09:02:32.000+0000 Last Updated: 2010-05-01T10:30:07.000+0000 Status: Resolved Fix version(s): - 1.10.5 (26/May/10)

Reporter: Paul Claassen (stiefel) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date

Related issues: Attachments:


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.


Posted by Thomas Weidner (thomas) on 2010-05-01T10:30:05.000+0000

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.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.