当我打开网站的后端并点击产品时,它会出现此错误
错误1:
date() [<a href='function.date'>function.date</a>]: 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 'America/Chicago' for 'CDT/-5.0/DST' instead
错误2:
public function actions()
{
return array(
'uploadManufacLogo' => 'application.controllers.upload.ManuLogoUploadAction',
'uploadDesignerLogo' => 'application.controllers.upload.DesigLogoUploadAction',
'uploadProductImage' => 'application.controllers.upload.ProductImageUploadAction',
);
}
public function init(){
$this->_start_date = date("Y-m-d");
$this->_end_date = date("Y-m-d",strtotime("+60 days"));
}
/**
答案 0 :(得分:1)
您可能需要将时区放在php.ini文件的配置行中。你应该在php.ini文件中有一个这样的块:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York
配置完成后,请务必重新启动httpd service httpd restart
。