Skip to content

Commit e52f959

Browse files
committed
Show deadline with timezone
1 parent b2dc6f8 commit e52f959

File tree

1 file changed

+5
-3
lines changed
  • frontend/src/components/my-grant-profile-page-handler

1 file changed

+5
-3
lines changed

frontend/src/components/my-grant-profile-page-handler/my-grant.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
VerticalStack,
88
} from "@python-italia/pycon-styleguide";
99
import { FormattedMessage } from "react-intl";
10+
import { formatDeadlineDateTime } from "~/helpers/deadlines";
1011

1112
import { useCurrentLanguage } from "~/locale/context";
1213
import { DeadlineStatus, Status as GrantStatus } from "~/types";
@@ -78,9 +79,10 @@ export const MyGrant = ({ grant, deadline }: Props) => {
7879
id={`profile.myGrant.status.${grant.status}.nextSteps`}
7980
values={{
8081
replyDeadline: (
81-
<Text as="span" weight="strong">
82-
{dateFormatter.format(
83-
new Date(grant.applicantReplyDeadline),
82+
<Text size={2} as="span" weight="strong">
83+
{formatDeadlineDateTime(
84+
grant.applicantReplyDeadline,
85+
language,
8486
)}
8587
</Text>
8688
),

0 commit comments

Comments
 (0)