在这记录minecraft的点点滴滴。

作者:linfengfeiwu2015-10-25 13:26分类: 个人随笔

最近在调试wiki和外链系统的时候,本地测试均没问题,上传至服务器却出现了如下错误:

Warning: date() [function.date]: 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。
看了下是服务器时间不同步问题,可因为一些原因又没法改php.ini文件,解决办法是在主程序中加入以下代码即可:
date_default_timezone_set('Asia/Shanghai');
如果还报错,可以在对应的源文件中都加入以上代码,基本都可以解决。

温馨提示如有转载或引用以上内容之必要,敬请将本文链接作为出处标注,谢谢合作!
et_highlighter51

已有 0/2078 人参与

发表评论:

欢迎关注本站微信公众号~