среда, 10 декабря 2014 г.

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

Смотрим где размещены файлы конфигурации:
# locate php.ini

Вписываем строчку:
date.timezone = "Europe/Moscow"

сначала в /etc/php.ini
Перезагружаем apache:
# /etc/init.d/httpd restart

Проверяем результат:
# php -i | grep "timezone"

Если не помогло то создаем файл /php.ini в вписывает сюда эту же строчку.

Комментариев нет:

Отправить комментарий