Set the time zone in the code, you can do this:
-
- date_default_timezone_set('Asia/Shanghai');
- date_default_timezone_set('Asia/Chongqing');
- date_default_timezone_set('PRC'); // PRC is the People's Republic of China
- ini_set('date.timezone',' Etc/GMT-8');
- ini_set('date.timezone','PRC');
- ini_set('date.timezone','Asia/Shanghai');
- ini_set('date.timezont','Asia/ Chongqing');
Copy code
|