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

Commit

Permalink
add time to deadline
Browse files Browse the repository at this point in the history
  • Loading branch information
cstefc committed May 23, 2024
1 parent ffb4b8e commit 6240086
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 6240086

Please sign in to comment.