时间:2016年01月01日 | 作者 : lovean | 分类 : web | 浏览: 1670次 | 评论 0 人
Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for '8.0/no DST' instead in D:\AppServ\www\sm\test.php on line 2
出现这个问题是因为在php的配置文件中(php.ini)没有设置一个属性date.timezone
用查找的方式找到这个属性,并把它修改成date.timezone = Asia/Shanghai
修改完成之后需要重启apache服务器。
修改完成的截图
本站采用阿里云服务器,如果你也想使用阿里云服务器,可以点击领取代金券/优惠券
额 本文暂时没人评论 来添加一个吧
发表评论