安装系统的时候未去掉UTC勾,在安装php5.3.2出现php.info里面:
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 'Asia/Chongqing' for 'CST/8.0/no DST
解决如下:
在php.ini查找
只要在php.ini里面修改date.timezone的参数即可:
1.#将date.timezone加上Asia/Shanghai
2.date.timezone="Asia/Shanghai"
然后重启appache服务器。
转载于:https://blog.51cto.com/auskangaroo/433428