From 62400864b70ba6d5bd7bd1e0393546a44e0b8620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stef=20Oss=C3=A9?= Date: Thu, 23 May 2024 21:47:37 +0200 Subject: [PATCH] add time to deadline --- frontend/src/components/ProjectTeacherComponent.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/ProjectTeacherComponent.tsx b/frontend/src/components/ProjectTeacherComponent.tsx index 0c1330ac..6a760603 100644 --- a/frontend/src/components/ProjectTeacherComponent.tsx +++ b/frontend/src/components/ProjectTeacherComponent.tsx @@ -187,9 +187,12 @@ export function ProjectTeacherComponent(props: { if (requiredFiles != null) { requirements = JSON.stringify(requiredFiles); } + const d = new Date(deadline) + d.setHours(hours) + d.setMinutes(minutes) const projectInput: ProjectInput = { name: projectName, - deadline: deadline, + deadline: d.toISOString(), visible: visible, archived: archived, description: description,