Date (): Itisnotsafetorelyonthesystem & amp; rsquo; stimezonesettings. Youare * required * tousethedate. timezonesettingorthedate_default_timezone_set () function ....
Encounter
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 'Asia/Chongqing 'for 'cst/8.0/no DST' instead
Strtotime (): 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 'Asia/Chongqing 'for 'cst/8.0/no DST' instead
Solution: add the following in php. ini:
Date. timezone = "Asia/Shanghai"