PHP Warning: 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.
出现错误上面,怎么解决?从 PHP 5.1.0 ,当对使用date()等函数时,如果timezone设置不正确,在每一次调用时间函数时,都会产生E_NOTICE 或者 E_WARNING 信息。
解决方法:
编辑php.ini文件,修改date.timezone=PRC,并去掉前面的注释符号
service httpd restart 重启服务器
Comments | NOTHING