php_value date.timezone PRC" at the end of the file."/> php_value date.timezone PRC" at the end of the file.">
Home > Article > Backend Development > What should I do if the time zone setting in php.ini does not take effect?
Solution to the problem that the time zone setting in php.ini does not take effect: 1. Open the httpd.conf file; 2. Add "
php_value date.timezone PRC " at the end of the file.
The operating environment of this article: Windows7 system, PHP7.1 version, DELL G3 computer
Why does the time zone setting in php.ini not take effect? manage?
The configuration in php.ini still does not take effect
At this time, you need to open apache to set it
Open httpd.confAdd the following codes at the end of the file
<IfModule mod_php7.c> php_value date.timezone PRC </IfModule>
Then look at PHP, the setting is successful
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What should I do if the time zone setting in php.ini does not take effect?. For more information, please follow other related articles on the PHP Chinese website!