From 46f147427d428b32ec5d7868ee90aba9e50aad5d Mon Sep 17 00:00:00 2001
From: Jonathan Weth <git@jonathanweth.de>
Date: Thu, 18 Jun 2020 22:13:40 +0200
Subject: [PATCH] Remove wrong offset for weekdays in helper function

---
 aleksis/apps/chronos/util/date.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aleksis/apps/chronos/util/date.py b/aleksis/apps/chronos/util/date.py
index 026439d0..e31775ef 100644
--- a/aleksis/apps/chronos/util/date.py
+++ b/aleksis/apps/chronos/util/date.py
@@ -11,7 +11,7 @@ def week_weekday_from_date(when: date) -> Tuple[CalendarWeek, int]:
 
 def week_weekday_to_date(week: CalendarWeek, weekday: int) -> date:
     """Return a date object for one day in a calendar week."""
-    return week[weekday - 1]
+    return week[weekday]
 
 
 def week_period_to_date(week: Union[CalendarWeek, int], period) -> date:
-- 
GitLab