From a15257e044ac459a712e7619f498eaac44ffc6aa Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Sun, 19 Mar 2023 09:46:40 +0100 Subject: [PATCH] small date issue --- frontend/pages/wedstrijd/addcontest.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/pages/wedstrijd/addcontest.vue b/frontend/pages/wedstrijd/addcontest.vue index fad5da6..00fa007 100644 --- a/frontend/pages/wedstrijd/addcontest.vue +++ b/frontend/pages/wedstrijd/addcontest.vue @@ -202,10 +202,11 @@ const submitContestForm = async () => { event.competitors.forEach(competitor => { const combinedTime = competitor.time.minutes.toString().padStart(2, '0') + competitor.time.seconds.toString().padStart(2, '0') + competitor.time.milliseconds.toString().padStart(2, '0') + const docRef = doc(collection(db, 'timings')) batch.set(docRef, { relatiecode: competitor.relatiecode, - contest: { location: contest.value.location, date: contest.value.date.toString(), type: contest.value.type }, + contest: { location: contest.value.location, date: contest.value.date, type: contest.value.type }, event: event.id, time: { minutes: competitor.time.minutes.toString().padStart(2, '0'), seconds: competitor.time.seconds.toString().padStart(2, '0'), milliseconds: competitor.time.milliseconds.toString().padStart(2, '0'), combined: combinedTime }, dsq: competitor.dsq,