Skip to content

Commit

Permalink
fix course time stamps
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinOehlerkingCap committed Sep 11, 2024
1 parent db6538b commit a9a52c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/courses.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ const editCourseHandler = (req, res, next) => {
course.name = group.name;
course.teacherIds = getUserIdsByRole(group.users, 'teacher');
course.userIds = getUserIdsByRole(group.users, 'student');

if (group.validPeriod) {
course.startDate = timesHelper.fromUTC(group.validPeriod.from);
course.untilDate = timesHelper.fromUTC(group.validPeriod.until);
}
}

const syncedElements = (course.syncedWithGroup || syncedGroupId) ? getSyncedElements(
Expand Down

0 comments on commit a9a52c1

Please sign in to comment.