您的位置:首页 > 编程语言 > PHP开发

php编译安装5.3.2时区错误解决方法

2010-11-26 21:04 651 查看
安装系统的时候未去掉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服务器。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  php 解决 编译 时区 休闲