search
LoginSignup
16

More than 5 years have passed since last update.

posted at

FuelPHPでのタイムゾーン設定

FuelPHPをインストール後に出る以下のエラー

Error - date_default_timezone_get(): 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 'Asia/Tokyo' for 'JST/9.0/no DST' instead in COREPATH/classes/fuel.php on line 161

このエラーはapp/config/config.phpの97行目付近のタイムゾーンを以下のように設定することで解決します。

'default_timezone'   => 'Asia/Tokyo',

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
16