Skip to content
Snippets Groups Projects
Verified Commit 46f14742 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Remove wrong offset for weekdays in helper function

parent 38d200f6
No related branches found
No related tags found
1 merge request!63Fix some date/time functions and add new helper functions
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment