升级PHP5.3.17后 date出现错误提示
[i=s] 本帖最后由 问题用户 于 2013-6-22 14:48 编辑 [/i][p=30, 2, left]查看phpinfo的时候出现如下提示[/p]
[p=30, 2, left][code]Warning: phpinfo(): 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' instead in /www/web/basa/public_html/phpinfo.php on line 2[/code][/p]
[p=30, 2, left][attach]3120[/attach]
[/p]
【升级方法】
[url=http://www.wdlinux.cn/bbs/thread-3737-1-1.html]http://www.wdlinux.cn/bbs/thread-3737-1-1.html[/url][code]# wget http://down.wdlinux.cn/in/php_up53.sh
# sh php_up53.sh[/code] 应该是需要在php.ini中指定个默认时区 谢谢版主,修改后确实好了
页:
[1]