From fa83c36c80d81adab2b893b0ab87026d605c54ec Mon Sep 17 00:00:00 2001 From: Andreas 'count' Kotes Date: Wed, 6 Sep 2023 15:42:38 +0200 Subject: [PATCH] parse HH:mm:ss dates correctly (#484) --- src/ui/interop.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/interop.ts b/src/ui/interop.ts index 8f9b0c6..13bff1e 100644 --- a/src/ui/interop.ts +++ b/src/ui/interop.ts @@ -13,6 +13,9 @@ const parseTime = (time: string): Duration | null => { if (parsed.invalidReason) { parsed = DateTime.fromFormat(time, "HH:mm"); } + if (parsed.invalidReason) { + parsed = DateTime.fromFormat(time, "HH:mm:ss"); + } if (parsed.invalidReason) { console.error(