diff --git a/biscuit/apps/chronos/util.py b/biscuit/apps/chronos/util.py index 5c250f751361696f70547016b44fd0ef1c3b101d..710d79491c5103b2dd8e42a95ab89f421d6d1a5f 100644 --- a/biscuit/apps/chronos/util.py +++ b/biscuit/apps/chronos/util.py @@ -20,7 +20,7 @@ class CalendarWeek: def from_date(cls, when: date): """ Get the calendar week by a date object (the week this date is in). """ - return cls(year=when.strftime('%Y'), week=when.strftime('%V')) + return cls(year=when.year, week=int(when.strftime('%V'))) def __post_init__(self) -> None: today = date.today()