Код: Выделить всё
'formatter' => [
'class' => 'yii\i18n\Formatter',
'defaultTimeZone' => 'Europe/Moscow',
'timeZone' => 'GMT+3',
'dateFormat' => 'd MMMM yyyy',
'datetimeFormat' => 'd-M-Y H:i:s',
'timeFormat' => 'H:i:s',
],
Код: Выделить всё
IntlException
Constructor failed
1. in /Users/svetlanailina/Sites/boxic/vendor/yiisoft/yii2/i18n/Formatter.php at line 765
756757758759760761762763764765766767768769770771772773774 if (isset($this->_dateFormats[$format])) {
if ($type === 'date') {
$formatter = new IntlDateFormatter($this->locale, $this->_dateFormats[$format], IntlDateFormatter::NONE, $timeZone, $this->calendar);
} elseif ($type === 'time') {
$formatter = new IntlDateFormatter($this->locale, IntlDateFormatter::NONE, $this->_dateFormats[$format], $timeZone, $this->calendar);
} else {
$formatter = new IntlDateFormatter($this->locale, $this->_dateFormats[$format], $this->_dateFormats[$format], $timeZone, $this->calendar);
}
} else {
$formatter = new IntlDateFormatter($this->locale, IntlDateFormatter::NONE, IntlDateFormatter::NONE, $timeZone, $this->calendar, $format); //здесь красным