Issues

ZF-2404: In Zend_Date constructor Zend_Date::now() should pass a locale

Description

In Zend_Date constructor Zend_Date::now() is calling without $locale. (line 184)

If your browser doesn't send a HTTP_ACCEPT_LANGUAGE header and you don't pass date to Zend_Date then Zend_Locale will raise an exception "Autodetection of Locale has been failed!".

Comments

This is only the case

  • If the browser does not send the LANGUAGE Header
  • And you have not set a default locale within Zend_Locale or your bootstrap file
  • And your Environment does not provide a locale
  • And you are using a release below 7357

Already fixed through ZF pre-set default locale within Zend_Locale.