From 98418014d39a25e752b9bba975753551420dee83 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Thu, 23 May 2024 20:16:41 -0500 Subject: [PATCH] lowercase time string before beginning to parse --- apps/client/src/common/utils/dateConfig.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/client/src/common/utils/dateConfig.ts b/apps/client/src/common/utils/dateConfig.ts index 5108f73ca..e0f091544 100644 --- a/apps/client/src/common/utils/dateConfig.ts +++ b/apps/client/src/common/utils/dateConfig.ts @@ -112,6 +112,8 @@ function inferSeparators(value: string, isAM: boolean, isPM: boolean) { * @returns {number} - time string in millis */ export const forgivingStringToMillis = (value: string): number => { + value = value.toLowerCase(); + if (value === '12am' || value === '12a') { return 0; }