Страница 1 из 1

Ошибка в error_log

Добавлено: 18.02.2019, 14:25
Евгений
В файле error_log постоянно генерируются сообщения:
[18-Feb-2019 14:08:35 UTC] PHP Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home2/modelist/public_html/vendor/smarty/smarty/libs/plugins/modifier.date_format.php on line 60
[18-Feb-2019 14:08:35 UTC] PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home2/modelist/public_html/index.php on line 47

Подскажите пожалуйста как исправить.

Добавлено: 19.02.2019, 08:31
zyxer
проще всего в файле config/config.php раскомментировать строчку php_timezone и установить нужную вам временную зону. Список есть здесь http://php.net/manual/ru/timezones.php

Добавлено: 19.02.2019, 10:39
Евгений
Спасибо! Помогло!