diff --git a/frontend/app/components/InternshipEditor.vue b/frontend/app/components/InternshipEditor.vue index 98bf7cc..f2bcc94 100644 --- a/frontend/app/components/InternshipEditor.vue +++ b/frontend/app/components/InternshipEditor.vue @@ -91,7 +91,11 @@ const form = ref({ const user = useSanctumUser(); -function dateTimeFixup(datetime: Date) { +function dateTimeFixup(datetime: Date|string) { + if(typeof datetime === 'string') { + return datetime; + } + const year = datetime.getFullYear() const month = String(datetime.getMonth() + 1).padStart(2, '0') const day = String(datetime.getDate()).padStart(2, '0')