apache的error_log提示:
[Thu Sep 29 11:12:14 2011] [error] [client xxx.xxx.xxx.xxx ] PHP Warning: date() [<a href='function.date'>function.date</a>]: 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 /data/htdocs/xxx.php on line 19
在php.ini里指定timezone即可:
date.timezone = "PRC"
没有评论:
发表评论