Set and analyze date. timezone in php. ini. Although we know that this parameter represents the meaning of "People's Republic of China", this parameter is not found in the official documentation. only AsiaShanghai, AsiaHong_Kong, and so on are these parameters, why does this parameter mean "People's Republic of China", but this parameter is not found in official documents, such as Asia/Shanghai, Asia/Hong_Kong, and so on, why can I set this parameter to RPC? It seems that this parameter does not exist in the official documentation. Generally, it is set to Asia/Shanghai.
Recently, xampp was used. today, to correct the php function, the server time is obtained.
Since php5.1.0 starts, the date. timezone option is added to php. ini, which is disabled by default. The display time is Greenwich Mean Time, which is exactly eight hours different from that in Beijing.
Methods found on the Internet:
Modify the php. ini file and search for the file; date. timezone =. remove the semicolon before and add the time zone after "=.
For example, Asia/Chongqing (Chongqing), Asia/Shanghai (Shanghai), Asia/Urumqi (Urumqi), Asia/Macao (Macao), Asia/Hong_Kong (Hong Kong ), asia/Taipei (Taipei), PRC
Example
; Date. timezone =
Changed:
Date. timezone = Asia/Shanghai
The method is simple. However, in xampp, it is useless to change the php/php. ini file. Later, I searched the internet and found out that the damn xampp put php. ini under apache/bin. it was useful to modify the php. ini in it.
Region does not have such parameters. only Asia/Shanghai, Asia/Hong_Kong, and so on are these parameters. why...