Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 科哈纳日期警告信息_Php_Database_Kohana - Fatal编程技术网

Php 科哈纳日期警告信息

Php 科哈纳日期警告信息,php,database,kohana,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.d

我的站点管理面板通过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
和堆栈跟踪:

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

date( Y-m-d, 1336401401 )

News_Controller->add(  )
82.2行:

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

有什么问题吗?谢谢。

在bootstrap.php中,您是否注释掉了设置的默认时区行(3.2.0默认安装中的第25行):


这就是它所抱怨的。

但我使用的是Kohana 2版本,在bootstrap.phpaddit中找不到日期函数。这是一个PHP函数,可能会解决您的问题。
date_default_timezone_set('America/Chicago');