Skip to content

Commit 16fbcb8

Browse files
unknownunknown
authored andcommitted
#5-08-2024
1 parent 5e51e4b commit 16fbcb8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • appsTeacher/groups/site_files/js

appsTeacher/groups/site_files/js/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ app.controller("groups", function ($scope, $http, $timeout) {
450450
if (item.startDate && item.endDate) {
451451
let start = new Date(item.startDate);
452452
let end = new Date(item.endDate);
453-
end.setHours(0, 0, 0, 0);
453+
/* end.setHours(0, 0, 0, 0); */
454454
item.dayList = [];
455455
let index = item.days.findIndex((itm) => itm.code === start.getDay());
456456
if (index !== -1) {
@@ -464,7 +464,7 @@ app.controller("groups", function ($scope, $http, $timeout) {
464464
_start.setHours(0, 0, 0, 0);
465465
item.dayList.push({ date: _start, day: item.days[index] });
466466
}
467-
if (new Date(_start) == new Date(end)) {
467+
if (new Date(start) == new Date(end)) {
468468
break;
469469
}
470470
}

0 commit comments

Comments
 (0)