This commit is contained in:
2025-05-19 09:32:24 +05:30
parent 40a4276b71
commit 27096a5340
2 changed files with 0 additions and 6 deletions

View File

@@ -394,16 +394,11 @@ export default function AppointmentsPage() {
const rawDate = parseLocalDate(appointmentData.date); const rawDate = parseLocalDate(appointmentData.date);
console.log("Appointment date.date ", appointmentData.date);
console.log("Raw date", rawDate);
const updatedData = { const updatedData = {
...appointmentData, ...appointmentData,
date: rawDate.toLocaleDateString("en-CA"), date: rawDate.toLocaleDateString("en-CA"),
}; };
console.log("update data: ", updatedData.date);
// Check if we're editing an existing appointment with a valid ID // Check if we're editing an existing appointment with a valid ID
if ( if (
editingAppointment && editingAppointment &&

View File

@@ -30,7 +30,6 @@
"packages/*" "packages/*"
], ],
"dependencies": { "dependencies": {
"date-fns-tz": "^3.2.0",
"dotenv": "^16.5.0", "dotenv": "^16.5.0",
"dotenv-cli": "^8.0.0", "dotenv-cli": "^8.0.0",
"shx": "^0.4.0" "shx": "^0.4.0"