From d47488505e22fafbac399f30b75cbba8579568e6 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Sat, 14 Sep 2019 17:50:55 +0200 Subject: [PATCH] Fix week vs. weekday mixup. --- biscuit/apps/chronos/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biscuit/apps/chronos/util.py b/biscuit/apps/chronos/util.py index 1361b9db..6fcf4781 100644 --- a/biscuit/apps/chronos/util.py +++ b/biscuit/apps/chronos/util.py @@ -28,7 +28,7 @@ class CalendarWeek: if not self.year: self.year = today.year if not self.week: - self.week = today.isoweekday() + self.week = imt(today.strptime('%V')) def __str__(self) -> str: return '%s %d (%s %s %s)' % (_('Kalenderwoche'), self.week, self[0], _('to'), self[-1]) -- GitLab