It turns out that starting from php5.1.0, the date.timezone option has been added to php.ini. It is turned off by default
That is, the time displayed (no matter what php command is used) is Greenwich Mean Time
and our time (Beijing time) is exactly 8 hours behind. There are three methods below to restore the normal time.
1. The simplest way is not to use php5.1 or above
2. If you must use it and cannot modify php.ini, you need to add date_default_timezone_set (XXX) to the
statement about time initialization;
3. Once and for all, only php.ini can be modified. Open php.ini and search for date.timezone. Remove the semicolon in front of it.
= Add XXX after it and restart the http service (such as apache2 or iis, etc.). Regarding XXX, the available values for mainland China are: Asia/Chongqing, Asia/Shanghai, Asia/Urumqi (in order Chongqing, Shanghai, Urumqi)
Available in Hong Kong and Taiwan: Asia/Macao, Asia/Hong_Kong, Asia/Taipei (in order Macau, Hong Kong, Taipei)
There is also Singapore: Asia/Singapore
Foreigners seem to use Beijing missed the adjustment
Other available values are: Etc/GMT-8, Singapore, Hongkong, PRC
What is PRC? PRC is the People's Republic of China -_-
The above are the regions under GMT-8 that I compiled from the official php manual file. There may be some omissions.
The above has introduced a summary of the solution to the 8-hour time difference between photoshop cs5 official Chinese cracked version download and PHP, including the content of photoshop cs5 official Chinese cracked version download. I hope it will be helpful to friends who are interested in PHP tutorials.