fix: booking day wrong in booking list (#12007)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
pull/11421/merge
Carina Wollendorfer 2023-10-24 12:05:53 +02:00 committed by GitHub
parent 19f52429b0
commit 051353e7f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -226,6 +226,7 @@ function BookingListItem(booking: BookingItemProps) {
}; };
const startTime = dayjs(booking.startTime) const startTime = dayjs(booking.startTime)
.tz(user?.timeZone)
.locale(language) .locale(language)
.format(isUpcoming ? "ddd, D MMM" : "D MMMM YYYY"); .format(isUpcoming ? "ddd, D MMM" : "D MMMM YYYY");
const [isOpenRescheduleDialog, setIsOpenRescheduleDialog] = useState(false); const [isOpenRescheduleDialog, setIsOpenRescheduleDialog] = useState(false);