updated
This commit is contained in:
@@ -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 &&
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user