From f8021348db96bb9a10c3c7236b94c3ae9f0722a4 Mon Sep 17 00:00:00 2001 From: gras Date: Wed, 3 Apr 2024 21:34:41 +0200 Subject: [PATCH] fix for the fix - forgot to run tests --- src/common/Utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Utils.ts b/src/common/Utils.ts index 4aa82048..2e0a758b 100644 --- a/src/common/Utils.ts +++ b/src/common/Utils.ts @@ -133,7 +133,7 @@ export class Utils { let formattedTimestamp = timestamp.substring(0,9).replaceAll(':', '-') + timestamp.substring(9,timestamp.length); if (formattedTimestamp.indexOf("Z") > 0) { //replace Z (and what comes after the Z) with offset formattedTimestamp.substring(0, formattedTimestamp.indexOf("Z")) + (offset ? offset : '+00:00'); - } else if (formattedTimestamp.indexOf("+") > 0 || formattedTimestamp.indexOf("-") > 0) { //don't do anything + } else if (formattedTimestamp.indexOf("+") > 0 || timestamp.substring(9,timestamp.length).indexOf("-") > 0) { //don't do anything } else { //add offset formattedTimestamp = formattedTimestamp + (offset ? offset : '+00:00'); }