Sometimes use phpechodate (Y-m-dH: I: s) you will find that your time is different from the system time. This problem is generally caused by the difference between your own time zone and the configured time zone: There are three ways to modify php. ini, add the following content: [Date]; definesthedefatimetimezoneusedbythedat
Sometimes php echo date ("Y-m-d H: I: s ") you will find that your time is different from the system time. This problem is generally caused by the difference between your own time zone and the configured time zone: There are three ways to modify php. ini, add the following content: [Date]; Defines the default timezone used by the dat
Sometimes phpEcho date ("Y-m-d H: I: s"), you will find that your time is different from the system time.
HereProblemThis is generally because of the difference between your own time zone and the configured time zone:
SolutionThere are three methods
Modify php. ini and add the following content:
[Date]
; Defines the default timezone used by the date functions
Date. timezone = Asia/Chongqing
The Time Zone in your php. ini is not local.
You are here
; Date. timezone
Change
Date. timezone = "PRC"
Or other methods
Time ZoneProblem
Modify in php. ini
Or
Add at the beginning of the file
Ini_set ("date. timezone", "Asia/Chongqing ");
========================================================== =====
@ Ini_set ("date. timezone", "Asia/Shanghai ");