ZF-5614: Autodetection on year fails for short date notation
Zend_Date fails detecting the correct year using short date notation and setting the format to null or Zend_Date::DATE_MEDIUM.
$date = new Zend_Date('13.07.09', null, 'de_DE'); Zend_Debug::dump($date->getIso());
Returns: string(21) "9-07-13T00:00:00+0100"
The null problem could be easily fixed in Zend_Date using the attached patch, but it might be better to deal with it in Zend_Locale_Format::getDate (which would also solve the problem for Zend_Date::DATE_MEDIUM format).
Fixing it in Zend_Locale_Format::getDate might however introduce new side effects with dates prior to 1000 which are not left padded with zeros. Any ideas?