Skip to content

Commit

Permalink
Add timezone to meeting card
Browse files Browse the repository at this point in the history
  • Loading branch information
tohuynh committed Mar 30, 2022
1 parent 6749816 commit 2ac8c5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Cards/MeetingCard/MeetingCard.tsx
Expand Up @@ -58,7 +58,7 @@ const Images = styled.div({

const MeetingCard = ({ event, tags, excerpt, gram, query }: MeetingCardProps) => {
const { language } = useLanguageConfigContext();
const { firebaseConfig } = useAppConfigContext();
const { firebaseConfig, municipality } = useAppConfigContext();

const [staticThumbNailIsLoading, setStaticThumbNailIsLoading] = useState(true);

Expand Down Expand Up @@ -98,6 +98,7 @@ const MeetingCard = ({ event, tags, excerpt, gram, query }: MeetingCardProps) =>
);

const meetingDate = event.event_datetime?.toLocaleDateString(language, {
timeZone: municipality.timeZone,
month: "long",
day: "numeric",
year: "numeric",
Expand Down

0 comments on commit 2ac8c5c

Please sign in to comment.