Issue Type: Patch Created: 2010-04-16T05:35:48.000+0000 Last Updated: 2011-10-11T07:45:50.000+0000 Status: Resolved Fix version(s): - 1.10.4 (28/Apr/10)
Reporter: Alexander Grimalovsky (flying) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date
Related issues: Attachments: - Date.patch
Zend_Date::_date() and Zend_Date::_time() are passing invalid locale to Zend_Date::_calcdetail(): $return = $this->_calcdetail($calc, $time, self::TIMES, 'de'); // 'de' is used instead of $locale
Posted by Alexander Grimalovsky (flying) on 2010-04-16T05:36:51.000+0000
Patch for fixing issue, created agains rev.21753
Posted by Thomas Weidner (thomas) on 2010-04-16T06:16:20.000+0000
This is no failure. The code works as intended.
Please give a reproducable example to see what your problem is!
Posted by Thomas Weidner (thomas) on 2010-04-16T09:17:18.000+0000
Closing as non-issue No response from the reporter
Posted by Nikita Baksalyar (nbaksalyar) on 2011-07-21T20:42:35.000+0000
This issue is still present.
$date = Zend_Date::now('en_US'); $date->addDate('1 month'); // If file "de.xml" is deleted - exception appears ("locale 'de' not found")
Posted by Pawel Szczekutowicz (fenoms) on 2011-10-11T07:45:50.000+0000
Can confirm this.
Example: Zend_Date::now()->setTime('00:00:00', 'HH:mm:ss', 'pl_PL');
If we give locale "pl_PL" method setTime still uses "de" locale (by calling Zend/Date.php(3478): Zend_Date->set('00:00:00', 'WW', 'de')). Additionally if file "de.xml" is missing an exception occurs.
Have you found an issue?
See the Overview section for more details.