I recently upgraded from the old Zend Framework 1.9.5 to the latest – 1.10.3. Everything just looked to be working quite fine, except the date formatting. Although I had the same date formatting and options in the old version it seems to be not working.
I had the format_type set to PHP and even though I formatted the dates with a Zend Framework specific format: “d MMM yyyy”.
Zend_Date::setOptions(array('format_type' => 'php')); // ... $date = new Zend_Date($somedate); echo $date->get('d MMM yyyy'); |
Now as it appears format_type php in 1.10.3 is giving completely different result, and the correct format is date() like format in PHP.
Zend_Date::setOptions(array('format_type' => 'php')); // ... $date = new Zend_Date($somedate); echo $date->get('d M yy'); |