diff --git a/resources/js/components/farm/MoveAnimalDialog.vue b/resources/js/components/farm/MoveAnimalDialog.vue index 7294351..2d50de0 100644 --- a/resources/js/components/farm/MoveAnimalDialog.vue +++ b/resources/js/components/farm/MoveAnimalDialog.vue @@ -69,7 +69,8 @@ watch(open, (isOpen) => { function submit(): void { form.transform((data) => ({ ...data, - moved_at: data.moved_at === '' ? null : data.moved_at, + moved_at: + data.moved_at === '' ? null : new Date(data.moved_at).toISOString(), notes: data.notes === '' ? null : data.notes, })).submit(AnimalMovementController.store(props.animal), { preserveScroll: true,