我已将我的 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
更改此设置后,重新启动您的网络服务器,警告应该消失。
关于警告 : strtotime() Error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14978751/