标题:解决php的It is not safe to rely on the system’s timezone settings的问题 出处:刘新修 时间:Sat, 11 Jan 2014 17:31:59 +0000 作者:刘新修 地址:http://liuxinxiu.com:80/php_date/ 内容: date Warning: phpinfo() [function.phpinfo]: 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 'America/New_York' for 'EST/-5.0/no DST' instead in /usr/local/apache/htdocs/index.php on line 2 http://tiyan100.gd.chinamobile.com/ 解决办法,在php.ini里加上 date.timezone = PRC 修改完成重启Apache时间还是错误,查看phpinfo页面信息显示:Loaded Configuration File为:none Configuration File (php.ini) Path:/usr/local/php/etc 把php.ini 拷贝到该目录 全路径 /usr/local/php/etc/php.ini 之后再重启Apache, Generated by Bo-blog 2.1.1 Release