Issues

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

Issue Type: Bug Created: 2008-01-09T15:49:41.000+0000 Last Updated: 2008-02-26T12:56:06.000+0000 Status: Resolved Fix version(s): - 1.0.4 (26/Feb/08)

Reporter: Martin Milesich (milesich) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date

Related issues: Attachments:

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

Posted by Thomas Weidner (thomas) on 2008-01-09T16:37:30.000+0000

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

Posted by Thomas Weidner (thomas) on 2008-01-09T16:38:12.000+0000

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts