Skip to content

Commit

Permalink
fix: show correct weekday in exams (#1012)
Browse files Browse the repository at this point in the history
  • Loading branch information
limwa authored Oct 10, 2023
2 parents 7275d0a + f200a5a commit b3f051d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uni/lib/model/entities/exam.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Exam {
String weekDay(AppLocale locale) {
return DateFormat.EEEE(locale.localeCode.languageCode)
.dateSymbols
.WEEKDAYS[begin.weekday - 1];
.WEEKDAYS[begin.weekday % 7];
}

String month(AppLocale locale) {
Expand Down

0 comments on commit b3f051d

Please sign in to comment.