fix: Booking page display time based on selected timezone (#2691)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/2694/head
iamkun 2022-05-07 03:28:09 +08:00 committed by GitHub
parent 46690fa72b
commit 269dea70a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -476,7 +476,8 @@ const BookingPage = ({
<div className="text-bookinghighlight mb-4 flex">
<CalendarIcon className="mr-[10px] ml-[2px] inline-block h-4 w-4" />
<div className="-mt-1">
{(rescheduleUid || !eventType.recurringEvent.freq) && parseDate(date, i18n)}
{(rescheduleUid || !eventType.recurringEvent.freq) &&
parseDate(dayjs.tz(date, timeZone()), i18n)}
{!rescheduleUid &&
eventType.recurringEvent.freq &&
recurringStrings.slice(0, 5).map((aDate, key) => <p key={key}>{aDate}</p>)}