diff --git a/ui/src/components/trainingReport/trainingReportForm.vue b/ui/src/components/trainingReport/trainingReportForm.vue index 269ff10..137f3a6 100644 --- a/ui/src/components/trainingReport/trainingReportForm.vue +++ b/ui/src/components/trainingReport/trainingReportForm.vue @@ -31,10 +31,10 @@ const { handleSubmit, resetForm, errors } = useForm({ const submitForm = handleSubmit(onSubmit); function toMySQLDateTime(date: Date): string { - return date - .toISOString() // 2025-11-19T00:00:00.000Z - .slice(0, 23) // keep milliseconds → 2025-11-19T00:00:00.000 - .replace("T", " ") + "000"; // becomes → 2025-11-19 00:00:00.000000 + return date + .toISOString() // 2025-11-19T00:00:00.000Z + .slice(0, 23) // keep milliseconds → 2025-11-19T00:00:00.000 + .replace("T", " ") + "000"; // becomes → 2025-11-19 00:00:00.000000 } @@ -48,7 +48,7 @@ function onSubmit(vals) { postTrainingReport(clean); console.log("SUBMITTED:", clean) - } catch(err) { + } catch (err) { console.log("There was an error submitting the training report", err); } } @@ -145,7 +145,7 @@ onMounted(async () => {
- +