AT TIME ZONE in T-SQL is great for bucketing counts (like daily) while respecting historical offset changes like daylight saving.

Small gotcha: You'll need to map from IANA to Windows Time Zone IDs for Azure SQL if sending IANA time zone via a browser.

https://learn.microsoft.com/en-us/sql/t-sql/queries/at-time-zone-transact-sql

#sql

AT TIME ZONE (Transact-SQL) - SQL Server

AT TIME ZONE Converts an input date to the corresponding datetimeoffset value in the target time zone.