Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Use time format constant
Browse files Browse the repository at this point in the history
  • Loading branch information
sophstad committed Feb 29, 2024
1 parent 531b8c0 commit 3e570c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/string/index.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down Expand Up @@ -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", "");
Expand Down

0 comments on commit 3e570c7

Please sign in to comment.