Skip to content

Commit 0141f05

Browse files
committed
fix(calendar): adjust timezone handling
1 parent 4497a99 commit 0141f05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layouts/calendar/calendar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const PERSIAN_MONTHS = [
2727
const WEEKDAYS = ['شنبه', 'یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنج‌شنبه', 'جمعه']
2828

2929
export const PersianCalendar: React.FC = () => {
30-
const today = jalaliMoment()
30+
const today = jalaliMoment().locale('fa').utc().add(3.5, 'hours')
3131
const [currentDate, setCurrentDate] = useState(today)
3232
const [selectedDate, setSelectedDate] = useState(today.clone())
3333

0 commit comments

Comments
 (0)