Board logo

标题: [求助] 升级PHP5.3.17后 date出现错误提示 [打印本页]

作者: 问题用户    时间: 2013-6-22 14:46     标题: 升级PHP5.3.17后 date出现错误提示

本帖最后由 问题用户 于 2013-6-22 14:48 编辑

查看phpinfo的时候出现如下提示



  1. 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
复制代码





剪贴板3.jpg



【升级方法】
http://www.wdlinux.cn/bbs/thread-3737-1-1.html
  1. # wget http://down.wdlinux.cn/in/php_up53.sh
  2. # sh php_up53.sh
复制代码


图片附件: 剪贴板3.jpg (2013-6-22 14:41, 46.3 KB) / 下载次数 3480
http://www.wdlinux.cn/bbs/attachment.php?aid=3120&k=a18b1dd840a43aaa31302122156b54c3&t=1714380848&sid=SXU1XA


作者: itxx    时间: 2013-6-23 10:03

应该是需要在php.ini中指定个默认时区
作者: 问题用户    时间: 2013-6-23 11:28

谢谢版主,修改后确实好了




欢迎光临 WDlinux官方论坛 (http://www.wdlinux.cn/bbs/) Powered by Discuz! 7.2