Default Zend_Locale date format

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Default Zend_Locale date format

blackpoints
Hello,

it's possible to define the default date format for toString (ZF 1.9.2)?

I try:

$locale = new Zend_Locale('en');
Zend_Registry::set('Zend_Locale', $locale);
Zend_Locale_Format::setOptions(array('date_format' => 'y-M-d H:m:s'));
die(Camac_Utils::sysDate()->toString());

The result is always with "en" format