LoginSignup
17
16

More than 5 years have passed since last update.

FuelPHPでのタイムゾーン設定

Posted at

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',
17
16
0

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
  3. You can use dark theme
What you can do with signing up
17
16