0

Kohana を介してコーディングされた私のサイト管理パネル。Corporate->Add New をクリックすると、次のような問題が発生します。

An error was detected which prevented the loading of this page. If this problem persists, please contact the website administrator.

panel/application/controllers/admin/corporate/news.php [82]:

date() [function.date]: 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 'Europe/Helsinki' for 'EEST/3.0/DST' instead

およびスタック トレース:

panel/application/controllers/admin/corporate/news.php [82]:

date( Y-m-d, 1336401401 )

News_Controller->add(  )

82.行:

$dbForm->date->value = date('Y-m-d',time());

何の問題?ありがとう。

4

1 に答える 1

1

bootstrap.phpで、設定したデフォルトのタイムゾーン行(3.2.0のデフォルトインストールの25行目)をコメントアウトしましたか?

date_default_timezone_set('America/Chicago');

それはそれが不平を言っていることです。

于 2012-05-07T18:14:42.417 に答える