为什么会有不同的结果(偏移量应该是 +03:00):
SELECT
CURRENT_TIMEZONE() as [CURRENT_TIMEZONE()] , SYSDATETIMEOFFSET() as [SYSDATETIMEOFFSET()];
结果是:
CURRENT_TIMEZONE() SYSDATETIMEOFFSET()
(UTC+03:00) Istanbul 2022-01-20 10:32:03.6897159 +02:00
linux时间是:
Local time: Thu 2022-01-20 11:32:07 +03
Universal time: Thu 2022-01-20 08:32:07 UTC
RTC time: Thu 2022-01-20 08:32:07
Time zone: Europe/Istanbul (+03, +0300)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a