From b78c7184dbb1b1708a63b895efccfdbe77ffdcaf Mon Sep 17 00:00:00 2001 From: Potenz Date: Tue, 15 Jul 2025 23:48:52 +0530 Subject: [PATCH] date issue fixed4 --- apps/Frontend/src/pages/appointments-page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/Frontend/src/pages/appointments-page.tsx b/apps/Frontend/src/pages/appointments-page.tsx index 6f6440c..5d688d9 100644 --- a/apps/Frontend/src/pages/appointments-page.tsx +++ b/apps/Frontend/src/pages/appointments-page.tsx @@ -441,7 +441,7 @@ export default function AppointmentsPage() { const selectedDateAppointments = appointments.filter((appointment) => { const dateObj = typeof appointment.date === "string" - ? new Date(appointment.date) + ? parseLocalDateString(appointment.date) : appointment.date; return formatLocalDate(dateObj) === formatLocalDate(selectedDate); // formattedDate should be 'yyyy-MM-dd' string in UTC format as well