内容へ移動
fl8 Wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
Dokuwiki.fl8.jp
»
11_php
»
02_framework
»
89_timezoneを指定してないとエラー
トレース:
11_php:02_framework:89_error_not_set_timezone
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== 89_timezoneを指定してないとエラー ====== このような感じでフォームを作成した場合など、ちゃんと「date_default_timezone_set('Asia/Tokyo');」など設定してないとエラーがでます。 <code php> $form = $app['form.factory']->createBuilder('form', $data) ->add('run_time', 'date', array( 'widget' => 'single_text', 'input' => 'string', ->getForm(); ) </code> ===== エラー ===== <code> Exception: DateTime::__construct(): 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 </code>
11_php/02_framework/89_error_not_set_timezone.txt
· 最終更新: 2014/07/03 04:35 by
matsui
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ