PHP 错误

来源:百度知道 编辑:UC知道 时间:2024/05/13 05:26:36
Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for '8.0/no DST' instead in D:\AppServ\www\mytest\100\25\25.PHP on line 12
这是很么错误?该如何解决?

没有设置时区,会有一个提示,开头加一句
date_default_timezone_set("Asia/ChongQing");

D:\AppServ\www\mytest\100\25\25.PHP on line 12

date()这个方法有错误??

用其他的看看!
$_SERVER['REQUEST_TIME'];

php5之后需要设置
date_default_timezone_set("Asia/ChongQing");