在我的 SQL Server 变量和设置中,系统时区以 MST 形式给出。我正在尝试将时区更改为伦敦,它不起作用在 PHP 代码中手动添加 10 小时不是一个选项,因为服务器是由 android 和 iphone 访问的。
我在数据库中尝试过
mysql > SET GLOBAL time_zone = timezone
这表明
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysql> SET GLOBAL time_zone = timezone' at line 1