解决php的It is not safe to rely on the system’s timezone settings的问题
原创杂文 / 时间:2013-07-09 23:00:46 / 阅读:1810 / 分享:0

最近配置服务器一直出现这样的问题 

Warning: 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in D:\WebServer\www\phpMyAdmin\libraries\common.lib.php on line 1805
2013 年 07 月 08 日 22:41

后来经过反复琢磨终于解决

解决办法,在php.ini里加上


date.timezone = "Asia/Shanghai"

按时间分类