Skip to content

Commit

Permalink
chore: add Tehran timezone to date formats
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-zeynal committed Nov 30, 2023
1 parent ee2fcde commit 4ae9ef7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/item-card/item-card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,21 +148,21 @@ const ItemCard = ({
<Typography variant="body2" gutterBottom>
{Helper.omitLongString(description, 50)}
</Typography>
<Typography variant="body1" sx={{ fontSize: 14 }} color="text.secondary">
<Typography variant="body1" sx={{ fontSize: 14, textWrap: 'nowrap' }} color="text.secondary">
From: {new DateObject({
date: new Date(startDate),
format: "YYYY/MM/DD, HH:mm",
calendar: persian,
locale: persian_en,
}).format()}
}).format() + ' UTC+03:30'}
</Typography>
<Typography variant="body1" sx={{ fontSize: 14 }} color="text.secondary">
<Typography variant="body1" sx={{ fontSize: 14, textWrap: 'nowrap' }} color="text.secondary">
To: {new DateObject({
date: new Date(endDate),
format: "YYYY/MM/DD, HH:mm",
calendar: persian,
locale: persian_en,
}).format()}
}).format() + ' UTC+03:30'}
</Typography>
<Divider sx={{ my: 1 }} />
<Presenter presenterName={presenterName} />
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/schedule/useSchedulePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function useSchedulePage() {
})
return {
Title: item.name,
date: startDate.format("YYYY/MM/DD"),
date: startDate.format("YYYY/MM/DD") + ' UTC+03:30',
Starts: startDate.format("HH:mm"),
Ends: endDate.format("HH:mm"),
}
Expand All @@ -59,7 +59,7 @@ export default function useSchedulePage() {
})
return {
Title: item.name,
date: startDate.format("YYYY/MM/DD"),
date: startDate.format("YYYY/MM/DD") + ' UTC+03:30',
Starts: startDate.format("HH:mm"),
Ends: endDate.format("HH:mm"),
}
Expand Down

0 comments on commit 4ae9ef7

Please sign in to comment.