Kohana日期警告信息

时间:2012-05-07 14:40:33

标签: php database kohana

我的网站管理员面板通过Kohana编码。点击“公司” - >“添加新项”时出现问题:

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

和Stack Trace:

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());

什么问题?感谢。

1 个答案:

答案 0 :(得分:1)

在你的bootstrap.php中,你有没有注释掉你设置的默认时区行(3.2.0默认安装中的第25行):

date_default_timezone_set('America/Chicago');

这就是抱怨的。