diff --git a/booking-app/components/src/client/utils/serverDate.ts b/booking-app/components/src/client/utils/serverDate.ts index c4651a57..9e7e1072 100644 --- a/booking-app/components/src/client/utils/serverDate.ts +++ b/booking-app/components/src/client/utils/serverDate.ts @@ -22,8 +22,8 @@ export const serverFormatDate = ( ): string => { if (!input) return ""; try { - const date = new Date(input); - + const timestamp = parseTimestamp(input); + const date = new Date(timestamp.toDate()); const zonedDate = toZonedTime(date, timeZone); const formattedResult = format(zonedDate, "yyyy-MM-dd hh:mm a", {