From 9ed6c7846619b9cb367c89f6a7e438b847ac121b Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 13 May 2022 11:52:05 -0700 Subject: [PATCH] Update date.ts [ci skip] --- src-ui/src/app/utils/date.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-ui/src/app/utils/date.ts b/src-ui/src/app/utils/date.ts index de5a89542..b62ffc939 100644 --- a/src-ui/src/app/utils/date.ts +++ b/src-ui/src/app/utils/date.ts @@ -1,5 +1,5 @@ // see https://github.com/dateutil/dateutil/issues/878 , JS Date does not // seem to accept these strings as valid dates so we must normalize offset export function normalizeDateStr(dateStr: string): string { - return dateStr.replace(/-(\d\d):\d\d:\d\d/gm, `-$1:00`) + return dateStr.replace(/[\+-](\d\d):\d\d:\d\d/gm, `-$1:00`) }