在 SQL Server 2014 中,当服务器处于 UTC 时,如何将给定的 UTC 日期时间转换为 PST 日期时间

In SQL Server 2014 , how to convert given UTC date time to PST date time, when the server is in UTC

如何通过在时间计算中保留夏令时,将给定的 UTC 日期时间转换为 PST 日期时间?

请注意,我访问的服务器是 utc。我的意思是,GETDATE() = GETUTCDATE()

此外,我们无法使用 AT TIME ZONE,因为数据库位于较旧的 SQL 服务器上。

在此先感谢您的帮助。

搜索站点,示例:Convert Datetime column from UTC to local time in select statement

阅读上面的 link,其中一些回复也包括日光内容。