Home > Article > Backend Development > How to set Beijing time in php.ini
Setting method: 1. Open the php.ini configuration file; 2. Find "; data.timezone =" in the configuration file and remove the ";" in front of it; 3. Set "data.timezone =" "PRC"" to set Beijing time.
The operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer
php.ini setting Beijing time
First open and modify php.ini;
Then find data.timezone =
in php.ini and remove the ;
in front of it No.;
Finally set the Beijing time zone, data.timezone = "PRC"
.
PRC refers to the People's Republic of China.
[Recommended learning: "PHP Video Tutorial"]
The above is the detailed content of How to set Beijing time in php.ini. For more information, please follow other related articles on the PHP Chinese website!