Ответить в теме

Отвязываю крон. В панели видно, что задачи обрабатываются, но статистика не отображается. В log/php_err.log падают ошибке в таком духе:

 

[CODE][21-Feb-2014 06:07:17 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/torrent/includes/cron/jobs/cache_gc.php on line 18

[21-Feb-2014 06:07:20 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/torrent/includes/cron/cron_init.php on line 61[/CODE]

 

В php.ini

date.timezone = "Asia/Yekaterinburg"

phpinfo: Default timezone Asia/Yekaterinburg

 

Следовательно в системе:

ln -s /usr/share/zoneinfo/Asia/Yekaterinburg /etc/localtime

# date выводит правильно

 

Debian 7 / nginx / php5-fpm (PHP 5.4.23-1~dotdeb.1)

 

Подскажите пожалуйста, в каком направлении капать?)

Видел на форумах люди советуют установить временную зону для каждого скрипта, но не думаю, что это тру способ.


Сверху