Ругается на date () после обновления php

Ragnar

Пользователь
Обновил PHP до 5.3.10 и стало ругаться на date ().
Логи показывают следующее
PHP:
[05-Feb-2012 20:30:10 UTC] 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 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /var/www/includes/cron/jobs/cache_gc.php on line 18
[05-Feb-2012 20:30:10 UTC] 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 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /var/www/includes/cron/jobs/cache_gc.php on line 18
[05-Feb-2012 20:30:10 UTC] 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 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /var/www/includes/cron/jobs/cache_gc.php on line 18
[05-Feb-2012 20:30:10 UTC] 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 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /var/www/includes/cron/jobs/cache_gc.php on line 18
[05-Feb-2012 20:30:10 UTC] 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 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /var/www/includes/cron/jobs/cache_gc.php on line 18
[05-Feb-2012 20:30:13 UTC] 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 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /var/www/includes/cron/cron_init.php on line 61
[05-Feb-2012 20:30:13 UTC] 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 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /var/www/language/lang_russian/lang_main.php on line 1641
 

krumax

Пользователь
Ragnar, в php.ini укажите зону.
вместо 'Europe/Helsinki'
поставьте реальную.
P.S.
как временный вариант:
в .htaccess
PHP:
php_value date.timezone "Europe/Moscow"
 
K

kenny

Гость
То что написал для Ragnar, krumax вполне сработает, так как часовой пояс не выставлен вообще мягко говоря.
Chumaster59, а вот по ссылки темка, дело не в пхп :)
 
Сверху