FreeBSD.Linux.PHP. Ошибка TimeZone

Рейтинг:   / 401
ПлохоОтлично 

После перехода на php 53 у меня в roundcube стала вылазить ошибка: "Ошибка сервера! (Bad Gateway)". Причём, лишь когда новые письма приходили.

А логи nginx буквально на глазах разрастались вот такими записями:

2012/08/21 23:15:11 [error] 1458#0: *4 FastCGI sent in stderr: "PHP message: PHP Warning: date(): 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 'Asia/Yekaterinburg' for 'YEKT/6.0/no DST' instead in /usr/local/www/mysite/mail/program/include/rcube_config.php on line 96
PHP message: PHP Warning: date(): 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 'Asia/Yekaterinburg' for 'YEKT/6.0/no DST' instead in /usr/local/www/mysite/mail/program/include/rcube_config.php on line 97
PHP message: 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 'Asia/Yekaterinburg' for 'YEKT/6.0/no DST' instead in /usr/local/www/mysite/mail/program/include/rcube_session.php on line 133" while reading response header from upstream, client: 192.168.0.2, server: technotrance.su, request: "GET /mail/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: "technotrance.su"
2012/08/21 23:15:11 [error] 1458#0: *4 FastCGI sent in stderr: "PHP message: PHP Warning: date(): 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 'Asia/Yekaterinburg' for 'YEKT/6.0/no DST' instead in /usr/local/www/mysite/mail/program/include/rcube_mdb2.php on line 603" while reading upstream, client: 192.168.0.2, server: technotrance.su, request: "GET /mail/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: "technotrance.su"
2012/08/21 23:15:20 [error] 1458#0: *14 FastCGI sent in stderr: "PHP message: PHP Warning: date(): 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 'Asia/Yekaterinburg' for 'YEKT/6.0/no DST' instead in /usr/local/www/mysite/mail/program/include/rcube_config.php on line 96
PHP message: PHP Warning: date(): 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 'Asia/Yekaterinburg' for 'YEKT/6.0/no DST' instead in /usr/local/www/mysite/mail/program/include/rcube_config.php on line 97
PHP message: 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 'Asia/Yekaterinburg' for 'YEKT/6.0/no DST' instead in /usr/local/www/mysite/mail/program/include/rcube_session.php on line 133
PHP message: PHP Warning: mktime(): 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 'Asia/Yekaterinburg' for 'YEKT/6.0/no DST' instead in /usr/local/www/mysite/mail/program/include/rcmail.php on line 895
PHP message: PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or th

Погуглив, я выяснил, что в новой версии php надо раскомментировать и настроить вот этот параметр:

date.timezone = "Asia/Yekaterinburg"

После этого ошибки прекратились, и roundcube нормально заработал.