标签:php string wordpress phpmyadmin joomla
我已将我的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,string,wordpress,phpmyadmin,joomla 来源: https://codeday.me/bug/20190729/1568916.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。