ZF-5969: Zend_Date::getDate() throws Zend_Date_Exception with message [Unable to parse the date format string]

Issue Type: Bug Created: 2009-03-09T02:38:43.000+0000 Last Updated: 2009-03-10T05:30:39.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Stanislaw Osinski (stanislaw.osinski) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date

Related issues: Attachments: - phpinfo.htm


The following code causes the failure: \

<pre class="highlight">

This happens for a number of different locales (about 80), I used the code below to get the number: \

<pre class="highlight">
        $allLocales = Zend_Locale::getLocaleList();
        $failing = array();
        foreach ($allLocales as $locale => $val) {
            try {
            catch (Exception $e)
                $failing []= $locale;


Posted by Stanislaw Osinski (stanislaw.osinski) on 2009-03-09T03:58:56.000+0000

PHP Info from the test environment.

Posted by Thomas Weidner (thomas) on 2009-03-10T04:40:24.000+0000

Interesting, but useless.

Not all locales exist within CLDR. "und" or "bn_CN" for example. They are given by LocaleList as this list returns the description for locales from the requested CLDR data and not from the available files. You are requesting data for the browser locale as you omitted the locale parameter for getLocaleList().

Excluding those cases where no locale file is available there are no failed detections.

Posted by Thomas Weidner (thomas) on 2009-03-10T05:30:38.000+0000

Cannot reproduce in trunk. Example code is broken.

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.