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,