php日期问题
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了php日期问题,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1259字,纯文字阅读大概需要2分钟。
内容图文
![php日期问题](/upload/InfoBanner/zyjiaocheng/149/09ed3b8218744673b678aa6776f597cb.jpg)
";
?>
出现这个是什么原因
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.gxlcms.com/article/3...
有用顶下 采纳 谢谢
时区没有设置,更改一下php.ini
文件中的date.timezone = PRC
,进行如上的更改,然后重启一下服务器
date_default_timezone_set('PRC');
修改php.ini
的配置项data.timezone = "Asia/Shanghai"
。或者如下
";
内容总结
以上是互联网集市为您收集整理的php日期问题全部内容,希望文章能够帮你解决php日期问题所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。