WordPress PHP时区导致大量错误日志

2010年10月28日 | 标签: , ,

apache 大量的error信息,提示如下
[Thu Oct 28 13:33:27 2010] [error] [client 77.88.xx.xxx] PHP Warning:  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/love/public_html/xxx.com/wp-includes/functions.php on line 35

解决方法 在php.ini加入 如New_York的时区
date.timezone = “America/New_York”

更多时区设定请参考http://www.php.net/manual/en/timezones.php

重启httpd 即可

目前还没有任何评论.