Add timezone-conversion and dashboard-widget SQL functions; remove obsolete backup__ copies
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:
2026-09-09 12:10:24 +02:00
co-authored by Claude Sonnet 5
parent 076290cbeb
commit c1936a327e
11 changed files with 107 additions and 265 deletions
@@ -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