使用phpmyadmin的时候 提示Warning: strtotime()

[复制链接]
查看11 | 回复2 | 2016-7-10 03:18:10 | 显示全部楼层 |阅读模式
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/Chongqing' for 'CST/8.0/no DST' instead in /home/httpd/admin/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/Chongqing' for 'CST/8.0/no DST' instead in /home/httpd/admin/libraries/common.lib.php on line 1482
本人比较新手。。请问如何设置才能让他不报错?。最好能说得详细一点。。 万分感谢

回复

使用道具 举报

千问 | 2016-7-10 03:18:10 | 显示全部楼层
在/phpMyAdmin/libraries/common.lib.php文件中,在<?php之后的第二行,写入以下代码date_default_timezone_set('PRC');//设置时区这样做就可以了。...
回复

使用道具 举报

千问 | 2016-7-10 03:18:10 | 显示全部楼层
这是因为没有设置默认时区,编辑/etc/php.ini找到;date.timezone=把分号去掉,并且在后面加上PRC,因为在中国date.timezone=PRC重启apache service httpd restart就可以了,你可以试试看...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行