From 81c5684102783a4b0dd0abc09bca799eadffb45e Mon Sep 17 00:00:00 2001 From: Adam French Date: Mon, 13 Apr 2026 12:34:12 +0100 Subject: [PATCH] Fix appliedAt date format to RFC3339 for GraphQL mutations Co-Authored-By: Claude Opus 4.6 --- vue/src/views/CV/JobApplications.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vue/src/views/CV/JobApplications.vue b/vue/src/views/CV/JobApplications.vue index 20684e0..18de0b4 100644 --- a/vue/src/views/CV/JobApplications.vue +++ b/vue/src/views/CV/JobApplications.vue @@ -39,7 +39,7 @@ async function createApplication() { location: form.value.location || undefined, url: form.value.url || undefined, notes: form.value.notes || undefined, - appliedAt: form.value.appliedAt || undefined, + appliedAt: form.value.appliedAt ? new Date(form.value.appliedAt).toISOString() : undefined, }; const data = await gql( `mutation CreateJobApplication($input: CreateJobApplicationInput!) { @@ -81,7 +81,7 @@ async function saveEdit(id) { location: editForm.value.location || undefined, url: editForm.value.url || undefined, notes: editForm.value.notes || undefined, - appliedAt: editForm.value.appliedAt || undefined, + appliedAt: editForm.value.appliedAt ? new Date(editForm.value.appliedAt).toISOString() : undefined, }; const data = await gql( `mutation UpdateJobApplication($id: ID!, $input: UpdateJobApplicationInput!) {