PHP Warning: Unknown: 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. in Unknown on line 0
解决方案:
1.在php.ini中找到date.timezone,修改如下所示:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Asia/Shanghai"
1.在php.ini中找到date.timezone,修改如下所示:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = PRC //PRC,People’s Republic of China,中华人民共和国,也就是日期使用中国的时区。