错误信息:PHP Warning: date(): 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.
解决方案:在显示时间前,需要设置时区
date_default_timezone_set('PRC');//设置中国时区
其中,PRC是People's republic of China(中华人民共和国)的缩写。