0
我的网站管理面板通过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
和堆栈跟踪:
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());
请告诉我问题呢?谢谢。
但即时通讯使用Kohana 2版本和未找到日期函数bootstrap.php – Karmacoma
添加它。这是一个PHP函数,可能会解决您的问题。 – gspatel