It has nothing to do with PHP 7.1. It has been like this since 5.1; I tested it specifically after you just said it Default timezone The default is UTC; phpinfo output must be UTC;
Please make sure you are indeed modifying the current version of php.ini
Open PHPini ctrl+g line 925 and modify it to: date.timezone = "PRC";
It has nothing to do with PHP 7.1. It has been like this since 5.1;
I tested it specifically after you just said it
Default timezone The default is UTC;
phpinfo output must be UTC;
Please make sure you are indeed modifying the current version of php.ini
Open PHPini ctrl+g line 925 and modify it to:
date.timezone = "PRC";
Or set it globally
date_default_timezone_set('PRC');
by liberxue
Make sure the modified configuration file php.ini is the path displayed by phpinfo? There are also modifications that require restarting apache
List items
The php.ini path is definitely correct, but it is invalid after modification.
List items
Use: date_default_timezone_set('PRC') can take effect, but it must be set every time.
Running version: PHP7.1.4