Skip to content

Commit

Permalink
fix: show correct weekday in exams
Browse files Browse the repository at this point in the history
  • Loading branch information
limwa committed Oct 10, 2023
1 parent 7275d0a commit f200a5a
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 f200a5a

Please sign in to comment.