Home  >  Article  >  Backend Development  >  How to set Beijing time in php.ini

How to set Beijing time in php.ini

青灯夜游
青灯夜游Original
2021-02-24 18:00:492093browse

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.

How to set Beijing time in php.ini

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn