HOME > WEB > PHP > PHPエラー『Warning: strtotime(): It is not safe to rely on the system’s timezone settings.・・・』対処方法

PHPエラー『Warning: strtotime(): It is not safe to rely on the system’s timezone settings.・・・』対処方法

folder_open label_outline
PHPエラー『Warning: strtotime(): It is not safe to rely on the system's timezone settings.・・・』対処方法

PHPのエラーで『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 xxx on line xxx』と表示された際の対処方法をご紹介いたします。

対処方法

php.iniに下記を追記します。

date.timezone =Asia/Tokyo

以上で完了です。