更改方式为更改配置文件
1、管理工具>>编辑配置文件。更改配置文件请小心使用
2、CTRL+f 搜索timezone 找到配置如下,登陆标红网址,找到所需要时区的书写格式。
选择亚洲/上海
Asia/Shanghai |
3、替换时区。保存配置文件。
// timezone: Timezone (reference: http://php.net/manual/en/timezones.php). If empty, it will be left unchanged and MUST be explicitly configured in PHP
// default: 'Europe/Paris'
'timezone' => 'Asia/Shanghai',