: This article mainly introduces phpWarning: phpinfo (): itisnotsafetorelyonthesystemstimezoneset.pdf. the solution is as follows: if you are interested in PHP tutorials, refer to it. Php Warning: phpinfo (): It is not safe to rely on the system's timezone settings. Solution
After installing php, use phpinfo (); to view the information, including Warning: phpinfo (): It is not safe to rely on the system's timezone settings, the reason is that the system timezone is not set.
Solution:
1. open php. ini. if you do not know the location of php. ini, you can use
View the Loaded Configuration File to know the current position of php. ini.
2. locate date. timezone, change it to date. timezone = RPC, and save the modification.
[Date]
; Defines the default timezone used by the date functions
Http://php.net/date.timezone
Date. timezone =
Change
[Date]
; Defines the default timezone used by the date functions
Http://php.net/date.timezone
Date. timezone = PRC
3. restart php after modification to view phpinfo (); warning disappears.
The above introduces php Warning: phpinfo (): It is not safe to rely on the systems timezone settings. the solution includes some content, and I hope some friends who are interested in the PHP Tutorial will help me.