Issue Type: Bug Created: 2009-01-22T09:25:28.000+0000 Last Updated: 2009-02-14T12:22:36.000+0000 Status: Resolved Fix version(s): - 1.7.5 (16/Feb/09)
Reporter: Jakub Igla (qba_rox) Assignee: Benjamin Eberlei (beberlei) Tags: - ZendX_JQuery
Related issues: - ZF-5786
Hi everyone. I've just found a bug in the ZendX_JQuery_View_Helper_DatePicker class in _resolveLocaleToDatePickerFormat() function. I set up zend_locale to en, so first part the result of Zend_Locale_Format::getDateFormat() method is MMM, which is equivalent to M in date() function. The _resolveLocaleToDatePickerFormat() function makes it as 'mmm' not 'M'. The problem is in str_replace() function, because shorter strings are at the beginning of array map, so str_replace() repleaced 3 times 'M' by 'm'.
Hope you know what I mean.
Posted by Benjamin Eberlei (beberlei) on 2009-01-22T11:31:24.000+0000
Posted by Jakub Igla (qba_rox) on 2009-01-23T01:10:27.000+0000
Oyy! My Zend_Locale format is: 'MMM d, yyyy' and after the replacement I suppose to get 'M d, yy'.
Posted by Benjamin Eberlei (beberlei) on 2009-02-03T10:45:01.000+0000
Will be fixed in next mini or minor release
Have you found an issue?
See the Overview section for more details.