Fix #2438 - Parse dates in format YYYY-MM with isoparse (#2537)

Co-authored-by: Raphael Michel <michel@rami.io>
This commit is contained in:
Richard Schreiber
2022-03-16 14:15:56 +01:00
committed by GitHub
parent 7b7a8e655e
commit cb7e014966
2 changed files with 2 additions and 2 deletions

View File

@@ -225,7 +225,7 @@ class EventListMixin:
def _set_month_year(self):
if 'date' in self.request.GET:
try:
date = dateutil.parser.parse(self.request.GET.get('date')).date()
date = dateutil.parser.isoparse(self.request.GET.get('date')).date()
except ValueError:
date = now().date()
self.year = date.year