Skip to content

Commit

Permalink
[#247] 강의 변경시 start 잘못 설정되는 버그 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
Hank-Choi committed Nov 28, 2022
1 parent d2f4c68 commit 53f5117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/timetable/TimetableLectureService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ function syncRealTimeWithPeriod(lecture: any): void {
const startTime = Time.fromHourMinuteString(it.start_time)
const endTime = Time.fromHourMinuteString(it.end_time)
it.len = it.len ? Number(it.len) : Math.ceil(endTime.subtract(startTime).minute / 30) / 2
it.start = it.start ? Number(it.start) : startTime.subtractHour(8).getDecimalHour()
it.start = it.start ? Number(it.start) : Math.floor(startTime.subtractHour(8).minute / 30) / 2
})
}

Expand Down

0 comments on commit 53f5117

Please sign in to comment.