PHP default time zone setting & lt; ahref = 'function. strtotime' & gt; function. strtotime & lt;/a & gt;]: Itisnotsafetorelyonthesystem 'stimezoneset=. pleaseusethedate. t PHP default time zone settings
Function. strtotime]: 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
?
Since the time taken by PHP is Greenwich mean time, it may be different from the local time. The Greenwich Mean Time and Beijing time are about eight hours different. solution:
1. add date_default_timezone_set () in the header of the application file to set the default time zone to Beijing time, that is:
Date_default_timezone_set ("PRC ");
?
2. Another way is to change the date. timezone of the php. ini file and set it to date. timezone = PRC.