2012-05-07 17 views
0

私のサイト管理パネルはKohana経由でコード化されています。Kohana date警告メッセージ

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.line:

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

いただきました問題Corporate-をクリックすると、>新規追加、問題を抱えていますか?ありがとう。あなたのbootstrap.phpの中

答えて

1

、あなたが設定したデフォルトのタイムゾーンライン(3.2.0デフォルトインストールでライン25)からコメントしている:

date_default_timezone_set('America/Chicago'); 

それは文句をされているものです。

+0

しかし、私はKohana 2バージョンを使用しており、bootstrap.phpの日付機能が見つかりません – Karmacoma

+0

追加してください。これはPHP関数であり、あなたの問題を解決する可能性があります。 – gspatel

関連する問題