From 256594453bceaa1abbe3694574bad8861f4aea66 Mon Sep 17 00:00:00 2001 From: Dominik George <nik@naturalnet.de> Date: Wed, 4 Sep 2019 21:04:37 +0200 Subject: [PATCH] Fix off-by-one error in week util. --- 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 88b010dc..9781ac55 100644 --- a/biscuit/apps/chronos/util.py +++ b/biscuit/apps/chronos/util.py @@ -37,4 +37,4 @@ def week_weekday_from_date(when: date) -> Sequence[int]: def week_weekday_to_date(week: int, weekday: int) -> date: - return week_days(week)[weekday] + return week_days(week)[weekday-1] -- GitLab