From 6ae403817f4e0e075eb57eba3262321ccf96b550 Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Mon, 22 Dec 2025 15:28:42 +0100 Subject: [PATCH] RDV --- ReflexUtils.ftl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ReflexUtils.ftl b/ReflexUtils.ftl index 6b4231a..ef916e9 100644 --- a/ReflexUtils.ftl +++ b/ReflexUtils.ftl @@ -5,6 +5,11 @@ <#return ((rfxdatetime + offset)?datetime.iso?iso_utc)> +<#function RfxDateTimetoUTCWithTimezone rfxdatetime timezone> + <#setting time_zone=timezone> + <#return (rfxdatetime?datetime.iso?iso_utc)> + + <#function DateTimeUTCtoRfxLocale dateutc locale > <#return dateutc?datetime.iso?iso_nz(locale)> @@ -16,14 +21,14 @@ <#assign timeInMilliseconds = (1000 * seconds) > <#assign aDate = date?long + timeInMilliseconds> <#return aDate?number_to_datetime> - + <#-- -------------------------------------------------------------------------------------------- --> <#-- Duration between two datetimes in second --> <#-- -------------------------------------------------------------------------------------------- --> <#function DurationBetweenTwoDatetimeInSeconds startDate endDate> <#return (endDate?long - startDate?long) / 1000 > - + <#-- --------------------------------------------------------------------------------------- --> <#-- Split email HARDIS WMS into json array string -->