Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DGoiana committed Sep 20, 2023
1 parent 263f2d2 commit e4d4f50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uni/lib/model/entities/lecture.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Lecture {
String classNumber,
int occurrId,
) {
final endTime = startTime.add(Duration(seconds: 60 * 30 * blocks));
final endTime = startTime.add(Duration(minutes: 30 * blocks));
final lecture = Lecture(
subject,
typeClass,
Expand Down Expand Up @@ -62,8 +62,8 @@ class Lecture {
day.add(Duration(hours: startTimeHours, minutes: startTimeMinutes)),
day.add(
Duration(
hours: startTimeMinutes + endTimeHours,
minutes: startTimeMinutes + endTimeMinutes,
hours: endTimeHours,
minutes: endTimeMinutes,
),
),
blocks,
Expand Down

0 comments on commit e4d4f50

Please sign in to comment.