首页 / PHP / php警告:strtotime()错误
php警告:strtotime()错误
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了php警告:strtotime()错误,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1477字,纯文字阅读大概需要3分钟。
内容图文
![php警告:strtotime()错误](/upload/InfoBanner/zyjiaocheng/744/92c67ff41e4f458abc08915154015e41.jpg)
我已将我的joomla和wordpress文件从旧服务器更改为新服务器.在前端和管理端,它的工作没有任何错误.但是在数据库(phpmyadmin)部分,它显示了一些像这样的警告消息.
Warning: strtotime() [function.strtotime]: 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/Calcutta' for 'IST/5.0/no DST' instead in /usr/share/phpmyadmin/libraries/db_info.inc.php on line 88
Warning: strftime() [function.strftime]: 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/Calcutta' for 'IST/5.0/no DST' instead in /usr/share/phpmyadmin/libraries/common.lib.php on line 1483
能否请您建议,如何隐藏这些警告信息?
提前致谢.
解决方法:
你真的只是想隐藏错误信息,或者你想解决问题,他们指出了什么?
在您的新服务器上,您应该在php.ini文件中找到一个设置date.timezone已注释掉.在这里,您必须指定服务器所在的时区.例如,我的服务器位于德国,所以我在这里使用Europe / Berlin:
date.timezone = Europe/Berlin
您可以在此处找到支持的时区的完整列表:
http://www.php.net/manual/en/timezones.php
更改此设置后,重新启动Web服务器并且警告应该消失.
内容总结
以上是互联网集市为您收集整理的php警告:strtotime()错误全部内容,希望文章能够帮你解决php警告:strtotime()错误所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。