Strict Standards: strftime() [function.strftime]: 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\sm\test.php on line 2
出现这个问题是因为在php的配置文件中(php.ini)没有设置一个属性date.timezone
用查找的方式找到这个属性,并把它修改成date.timezone = Asia/Shanghai
修改完成之后需要重启apache服务器。
修改完成的截图