以下の内容はhttps://chulip.org/entry/2015/04/20/180821より取得しました。


FuelPHPのoilコマンドでError - date_default_timezone_get()が起きる

f:id:arcright:20150420180009p:plain
FuelPHP ドキュメント
クイックインストールの方法通りにoilコマンドをインストールしてoil create blogを実行してみるとエラー。

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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in COREPATH/classes/fuel.php on line 167

date_default_timezone_getでエラーが起きている。date.timezoneもdate_dafault_timezone_setも設定した記憶がない。
設定がされていない場合UTCを選択するとあるがそれではダメなんだろうか。
PHP: date_default_timezone_get - Manual
phpのマニュアルを確認してみるとPHP5.4以降設定が必要になった事がわかる。

phpデフォルトのタイムゾーンを設定するべきだと思ったのでphp.iniのdate.timezoneを設定した。

oil createは成功した。




以上の内容はhttps://chulip.org/entry/2015/04/20/180821より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14