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. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone
处理方法:
第一种方法:
修改php.ini文件中的设置,找到";date.timezone = "选项,将该项修改为“date.timezone = PRC” ,然后重新启动Apache服务器。
第二种方法:
在使用日期格式之前添加 date_default_timezone_set('PRC');来完成时区的设置。