用 convert_tz 转换时区, 你可以用
show variables like 'time_zone';
得到时区, 如果返回的是 "system" 的话, 你可以用
show variables like 'system_time_zone';
得到结果
来源: https://www.php1.cn/detail/php-6b4f7cd432.html