/*
1. Set php. ini, find data. timezone = in php. ini, remove the; sign, and set data. timezone = "asia/shanghai.
2. Through php page settings, we can add date_default_timezone_set ('Asia/Shanghai') to the php page ');
Or ini_set ('date. timezone ', 'asiashanghai ');
3. By modifying the. htaccess file, you can modify the. htaccess file in either of the following two ways:
Php_value date. timezone asia/shanghai
3. The simplest method is not to use php5.1 or a later version.
4. If it must be used and php. ini cannot be modified
Add date_default_timezone_set (xxx );
5. Once and for all, only php. ini can be modified. Open php. ini and find date. timezone. Remove the semicolon.
= Add xxx to the backend and restart the http service (such as apache2 or iis).
For xxx, the available values in mainland China are: asia/chongqing, asia/shanghai, and asia/urumqi (which are
Qing, Shanghai, hulumu
Qi)
Available in Hong Kong and Taiwan regions: asia/macao, asia/hong_kong, asia/taipei (in the order of macao, Hong Kong, and taipei)
Singapore: asia/singapore
Foreigners seem to have missed Beijing
Other available values are: etc/GMT-8, singapore, hongkong, prc
What is prc? Prc is the People's Republic of China -_-