You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,4 +57,12 @@ if (TimeZoneInfo.TryConvertIanaIdToWindowsId(ianaTimeZone, out var windowsTimeZo
57
57
}
58
58
```
59
59
60
-
SQL Server 2022 supports IANA time zone names directly in `AT TIME ZONE` — the integration tests in this repository confirm this against SQL Server 2022. For older SQL Server versions that only recognize Windows time zone names, use the C# conversion above to translate the browser's IANA time zone before passing it to `AT TIME ZONE`.
60
+
SQL Server and Azure SQL officially support only **Windows time zone names** (e.g. `Eastern Standard Time`) in `AT TIME ZONE` — IANA names like `America/New_York` are not recognized. The C# conversion above is the recommended approach when accepting IANA time zones from browser clients. The integration tests in this repository detect IANA support at runtime via `sys.time_zone_info` behavior and skip IANA-specific tests when the SQL Server instance does not support them.
61
+
62
+
## Azure SQL
63
+
64
+
Azure SQL Database also uses **Windows time zone names** exclusively in `AT TIME ZONE`. IANA time zone names from browser clients must be converted to Windows IDs using `TimeZoneInfo.TryConvertIanaIdToWindowsId` before being passed to queries. You can query the supported time zones with:
0 commit comments