警告 : strtotime() Error

标签 php string wordpress joomla phpmyadmin

我已将我的 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/

相关文章:

string - 从具有多个数字的数字中拆分一个字符

javascript - 修复我的隐藏默认值以及鼠标悬停时的显示/隐藏

使用 GET 变量重写 WordPress URL

php - 在数据集中找到最真实的市场平均价格的算法

c# - 将 Base64 图像发送到服务器,然后从服务器拉取以稍后显示 Xamarin

php - 如何优化升级web应用?

php - 未找到 Zend Framework 2 类 'PDO'

c++ - 当测试用例数为 1 时,为什么我的程序不接受输入而是打印一个新行?

c - 如何从数组中获取字符串

php - 使用嵌入的 wp_query 查询保留 postdata?