Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make dates on inactivity notice card utc
  • Loading branch information
regalijan committed Jan 25, 2025
1 parent 3e9cfb8 commit 0504908
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions components/InactivityNoticeCard.tsx
Expand Up @@ -91,11 +91,19 @@ export default function (
</Box>
<Box>
<Heading size="xs">Start Date</Heading>
<Text>{new Date(props.start).toLocaleDateString()}</Text>
<Text>
{new Date(props.start).toLocaleDateString(undefined, {
timeZone: "utc",
})}
</Text>
</Box>
<Box>
<Heading size="xs">End Date</Heading>
<Text>{new Date(props.end).toLocaleDateString()}</Text>
<Text>
{new Date(props.end).toLocaleDateString(undefined, {
timeZone: "utc",
})}
</Text>
</Box>
{typeof props.hiatus === "boolean" ? (
<Box>
Expand Down

0 comments on commit 0504908

Please sign in to comment.