It is not safe to rely on the system’s timezone settings.

以下、備忘録です。解決を保障するものではありません。

PHPで作成されたツールを実行した際に
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.
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.
が表示された場合の原因についてです。原因は

サーバーにタイムゾーンが設定されていない

という可能性があります。

この場合php.iniに以下のような記述を足したことで解決しました。

date.timezone = 'Asia/Tokyo'

ちなみに使っていたツールはResearch Artisan Liteです。

コメント

PAGE TOP
タイトルとURLをコピーしました