From 99e027f47088ac12dad8470824eda2e2176c5637 Mon Sep 17 00:00:00 2001 From: Kristoffer Longva Eriksen Date: Fri, 25 Mar 2022 14:43:09 +0100 Subject: [PATCH] populated managetournament form --- src/client/src/managetournament.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/managetournament.js b/src/client/src/managetournament.js index d21f783..6380541 100644 --- a/src/client/src/managetournament.js +++ b/src/client/src/managetournament.js @@ -84,8 +84,8 @@ function ManageTournament(props) { setTournamentInfo(data.data); document.getElementById("editName").value = data.data.name; document.getElementById("editDesc").value = data.data.description; - document.getElementById("editStartDate").value = data.data.startTime; - document.getElementById("editEndDate").value = data.data.endTime; + document.getElementById("editStartDate").value = data.data.startTime.slice(0, 16); + document.getElementById("editEndDate").value = data.data.endTime.slice(0, 16); }) .catch((err) => console.log(err.message)); }, []);