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

Started by Ragnar on 2012-02-05 20:38 — 15 replies, 3415 views

#1
Обновил PHP до 5.3.10 и стало ругаться на date ().
Логи показывают следующее
[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
#2
Ragnar, в php.ini укажите зону.
вместо 'Europe/Helsinki'
поставьте реальную.
P.S.
как временный вариант:
в .htaccess
php_value date.timezone "Europe/Moscow"
#3
krumax,
не поможет

http://torrentpier.com/threads/php-5-3-9-и-непонятки-в-logax.859/
#4
То что написал для Ragnar, krumax вполне сработает, так как часовой пояс не выставлен вообще мягко говоря.
Chumaster59, а вот по ссылки темка, дело не в пхп 🙂
#5
kenny, прописал, безрезультатно
#6
kenny, прописал, безрезультатно
после того как прописал, перезапусти сервер.
#7
Ragnar, рестарт делал?
#8
Да
#9
дедик или впс?
phpinfo в студию
#10
date.timezone = "Europe/Moscow"

в php.ini