Add timezone-conversion and dashboard-widget SQL functions; remove obsolete backup__ copies
Playwright Tests / test (push) Canceled after 0s
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>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
|
||||
-- =============================================
|
||||
-- Author: Dr. Stefan Ott
|
||||
-- Create date: <Create Date, ,>
|
||||
-- Description: <Description, ,>
|
||||
-- =============================================
|
||||
CREATE FUNCTION [dbo].[datetime_LocalToUTC]
|
||||
(
|
||||
@datetime datetime
|
||||
,@timezone varchar(50) = null
|
||||
)
|
||||
RETURNS datetime
|
||||
AS
|
||||
BEGIN
|
||||
DECLARE @Ret datetime;
|
||||
|
||||
IF @datetime is null
|
||||
SET @RET = null;
|
||||
ELSE
|
||||
SET @RET = @datetime AT TIME ZONE ISNULL(@timezone, 'Central European Standard Time') AT TIME ZONE 'UTC'
|
||||
|
||||
RETURN @RET;
|
||||
|
||||
END
|
||||
Reference in New Issue
Block a user