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

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
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

View file

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