Playwright Tests / test (push) Canceled after 0s
Add datetime_LocalToUTC / datetime_utcToLocal, and two widget query functions (fds_wdg_MFRSync, fds_wgd_lastEmails). Remove the unreferenced backup__fds__* function files superseded by their current counterparts, and suppress SQL71501 (unresolved cross-database/composite references) project-wide. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
26 lines
539 B
Transact-SQL
26 lines
539 B
Transact-SQL
|
|
|
|
-- =============================================
|
|
-- Author: Dr. Stefan Ott
|
|
-- Create date: <Create Date, ,>
|
|
-- Description: <Description, ,>
|
|
-- =============================================
|
|
CREATE FUNCTION [dbo].[datetime_utcToLocal]
|
|
(
|
|
@datetime datetime
|
|
,@timezone varchar(50) = null
|
|
)
|
|
RETURNS datetime
|
|
WITH SCHEMABINDING
|
|
AS
|
|
BEGIN
|
|
DECLARE @Ret datetime;
|
|
|
|
IF @datetime is null
|
|
SET @RET = null;
|
|
ELSE
|
|
SET @RET = @datetime AT TIME ZONE 'UTC' AT TIME ZONE ISNULL(@timezone, 'Central European Standard Time');
|
|
|
|
RETURN @RET;
|
|
|
|
END |