From 05049083194d884dffd8c00ed4e10bfd6603bcf7 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Sat, 25 Jan 2025 04:10:15 -0500 Subject: [PATCH] Make dates on inactivity notice card utc --- components/InactivityNoticeCard.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/components/InactivityNoticeCard.tsx b/components/InactivityNoticeCard.tsx index 91ca9c2..f2e6de7 100644 --- a/components/InactivityNoticeCard.tsx +++ b/components/InactivityNoticeCard.tsx @@ -91,11 +91,19 @@ export default function ( Start Date - {new Date(props.start).toLocaleDateString()} + + {new Date(props.start).toLocaleDateString(undefined, { + timeZone: "utc", + })} + End Date - {new Date(props.end).toLocaleDateString()} + + {new Date(props.end).toLocaleDateString(undefined, { + timeZone: "utc", + })} + {typeof props.hiatus === "boolean" ? (