strftime
has nothing to do with ZF2 or the intl
php extension. However ZF2 does come with a DateFormat
view helper that should solve your problem. The full documentation is available at:
http://framework.zend.com/manual/2.2/en/modules/zend.i18n.view.helpers.html#dateformat-helper
A quick example:
Debug::dump($this->dateFormat($openDate->getTimestamp(), IntlDateFormatter::LONG));
The default locale for the DateFormat
view helper is that returned by Locale::getDefault()
therefore it should return the date in french as you require.
To use your custom format:
Debug::dump($this->dateFormat($openDate->getTimestamp(), IntlDateFormatter::LONG, IntlDateFormatter::LONG, null, "dd LLLL Y - HH:mm"));