forked from CGM_Public/pretix_original
Fix unhandled error when parsing date in calendar-view (#5072)
This commit is contained in:
committed by
GitHub
parent
3dedfd6ee0
commit
2605fe93d9
@@ -928,7 +928,9 @@ class DayCalendarView(OrganizerViewMixin, EventListMixin, TemplateView):
|
||||
def _set_date(self):
|
||||
if 'date' in self.request.GET:
|
||||
self.tz = self.request.organizer.timezone
|
||||
self.date = parse_date_localized(self.request.GET.get('date')).date() or now().astimezone(self.tz).date()
|
||||
self.date = (
|
||||
parse_date_localized(self.request.GET.get('date')) or now().astimezone(self.tz)
|
||||
).date()
|
||||
else:
|
||||
self._set_date_to_next_event()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user