From 3e570c76d942bc2934bfcf667276abc3896e4b12 Mon Sep 17 00:00:00 2001 From: Sophie Stadler Date: Thu, 29 Feb 2024 09:30:47 -0500 Subject: [PATCH] Use time format constant --- src/utils/string/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/string/index.ts b/src/utils/string/index.ts index 0da8f6c62d..8781676286 100644 --- a/src/utils/string/index.ts +++ b/src/utils/string/index.ts @@ -1,5 +1,6 @@ import { format, utcToZonedTime } from "date-fns-tz"; import get from "lodash/get"; +import { TimeFormat } from "constants/fieldMaps"; export { githubPRLinkify } from "./githubPRLinkify"; @@ -127,7 +128,7 @@ export const getDateCopy = ( dateFormat = "MMM d, yyyy"; } if (!timeFormat) { - timeFormat = "h:mm:ss aa"; + timeFormat = TimeFormat.TwelveHour; } if (omitSeconds) { timeFormat = timeFormat.replace(":ss", "");