问题描述
我已将我的 joomla 和 wordpress 文件从旧服务器更改为新服务器.在前端和管理端,它的工作没有任何错误.但是在数据库(phpmyadmin)部分它显示了一些这样的警告消息..
I have changed my joomla and wordpress files from old server to new server. In the front end and admin side its working without any errors. But in the Database (phpmyadmin) Section it shows some warning messages like this..
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
您能否建议如何隐藏这些警告消息??
Can you please suggest, how to hide these warning messages??
提前致谢.
推荐答案
你真的只是想隐藏错误信息还是你想解决问题,他们正在指示?
Do you really just want to hide the error message or do you want to solve the problem, they're indicating?
在您的新服务器上,您应该会发现 php.ini 文件中的设置 date.timezone 被注释掉了.在这里,您必须指定您的服务器所在的时区.例如,我的服务器位于德国,所以我在这里使用 Europe/Berlin:
On your new server, you should find a setting date.timezone in your php.ini file commented out. Here, you have to specify the timezone your server is located in. For instance, my server is located in Germany, so I use Europe/Berlin here:
date.timezone = Europe/Berlin
您可以在此处找到受支持时区的完整列表:
You find a complete list of supported timezones here:
http://www.php.net/manual/en/timezones.php
更改此设置后,重新启动您的网络服务器,警告应该消失了.
After changing this setting, restart your web server and the warnings should be gone.
这篇关于php 警告:strtotime() 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)