Fix/incorrect timezone on booking success (#7544)
* set the selected timezone to formatToLocalizedTimezone function * remove console.logs
This commit is contained in:
1 parent
69808bb9a4
commit
33f35e77fd
2 files changed
+5
-5
No files matched your search
@@ -796,7 +796,6 @@ export function RecurringBookings({
|
||||
t,
|
||||
i18n: { language },
|
||||
} = useLocale();
|
||||
|
||||
const recurringBookingsSorted = recurringBookings
|
||||
? recurringBookings.sort((a: ConfigType, b: ConfigType) => (dayjs(a).isAfter(dayjs(b)) ? 1 : -1))
|
||||
: null;
|
||||
@@ -823,7 +822,7 @@ export function RecurringBookings({
|
||||
{formatToLocalizedTime(dayjs(dateStr), language, undefined, !is24h)} -{" "}
|
||||
{formatToLocalizedTime(dayjs(dateStr).add(duration, "m"), language, undefined, !is24h)}{" "}
|
||||
<span className="text-bookinglight">
|
||||
({formatToLocalizedTimezone(dayjs(dateStr), language)})
|
||||
({formatToLocalizedTimezone(dayjs(dateStr), language, timeZone())})
|
||||
</span>
|
||||
</div>
|
||||
))}
|
||||
@@ -843,7 +842,7 @@ export function RecurringBookings({
|
||||
{formatToLocalizedTime(date, language, undefined, !is24h)} -{" "}
|
||||
{formatToLocalizedTime(dayjs(date).add(duration, "m"), language, undefined, !is24h)}{" "}
|
||||
<span className="text-bookinglight">
|
||||
({formatToLocalizedTimezone(dayjs(dateStr), language)})
|
||||
({formatToLocalizedTimezone(dayjs(dateStr), language, timeZone())})
|
||||
</span>
|
||||
</div>
|
||||
))}
|
||||
@@ -860,7 +859,7 @@ export function RecurringBookings({
|
||||
<br />
|
||||
{formatToLocalizedTime(date, language, undefined, !is24h)} -{" "}
|
||||
{formatToLocalizedTime(dayjs(date).add(duration, "m"), language, undefined, !is24h)}{" "}
|
||||
<span className="text-bookinglight">({formatToLocalizedTimezone(date, language)})</span>
|
||||
<span className="text-bookinglight">({formatToLocalizedTimezone(date, language, timeZone())})</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user