Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #406 from SELab-2/time_deadline
Browse files Browse the repository at this point in the history
add time to deadline
  • Loading branch information
matt01y authored May 23, 2024
2 parents 551befc + 6240086 commit 4b0bd3e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/components/ProjectTeacherComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4b0bd3e

Please sign in to comment.