From 4ae9ef7ab58411c30700eec4723862bb20094d32 Mon Sep 17 00:00:00 2001 From: mh-zeynal Date: Fri, 1 Dec 2023 00:46:40 +0330 Subject: [PATCH] chore: add Tehran timezone to date formats --- frontend/src/components/item-card/item-card.jsx | 8 ++++---- frontend/src/pages/schedule/useSchedulePage.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/item-card/item-card.jsx b/frontend/src/components/item-card/item-card.jsx index 1e567d4..dd00834 100644 --- a/frontend/src/components/item-card/item-card.jsx +++ b/frontend/src/components/item-card/item-card.jsx @@ -148,21 +148,21 @@ const ItemCard = ({ {Helper.omitLongString(description, 50)} - + From: {new DateObject({ date: new Date(startDate), format: "YYYY/MM/DD, HH:mm", calendar: persian, locale: persian_en, - }).format()} + }).format() + ' UTC+03:30'} - + To: {new DateObject({ date: new Date(endDate), format: "YYYY/MM/DD, HH:mm", calendar: persian, locale: persian_en, - }).format()} + }).format() + ' UTC+03:30'} diff --git a/frontend/src/pages/schedule/useSchedulePage.js b/frontend/src/pages/schedule/useSchedulePage.js index 6acf622..8214bc9 100644 --- a/frontend/src/pages/schedule/useSchedulePage.js +++ b/frontend/src/pages/schedule/useSchedulePage.js @@ -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"), } @@ -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"), }