您好,欢迎访问一九零五行业门户网

php日期问题

出现这个是什么原因

strict standards: date() [function.date]: 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 f:appappserverappservwwwdate1.php on line 7
浠婂ぉ鏄� 2016/11/08
回复内容: 出现这个是什么原因

strict standards: date() [function.date]: 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 f:appappserverappservwwwdate1.php on line 7
浠婂ぉ鏄� 2016/11/08
在使用之前设置时区。
应该是时区不对 设置下时区
传送 设置时区方法 http://www.jb51.net/article/3...
有用顶下 采纳 谢谢
时区没有设置,更改一下php.ini文件中的date.timezone = prc ,进行如上的更改,然后重启一下服务器
date_default_timezone_set('prc');
修改php.ini的配置项data.timezone = asia/shanghai。或者如下
;
其它类似信息

推荐信息