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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/cakephp/lib/Cake/Cache/CacheEngine.php on line 60
上記のメッセージが出ていたので、解決する。
/etc/php.ini
に
date.timezone = “Asia/Tokyo"
と日本時間になるように設定する。
後は、apacheを再起動する
$ sudo service httpd graceful
追記
上記の方法で解決しない場合は、以下を試すと良い。
app/Config/core.php
270行付近にある
// date_default_timezone_set('UTC');
をコメントを外して、日本時間にあうように、
date_default_timezone_set('Asia/Tokyo');
とする。
0 件のコメント:
コメントを投稿