mirror of
https://github.com/pretix/pretix.git
synced 2026-08-28 13:34:40 +00:00
Fixed a broken test
This commit is contained in:
@@ -143,7 +143,7 @@ class Event(LoggedModel):
|
|||||||
if ``show_date_to`` is ``False``.
|
if ``show_date_to`` is ``False``.
|
||||||
"""
|
"""
|
||||||
tz = tz or pytz.timezone(self.settings.timezone)
|
tz = tz or pytz.timezone(self.settings.timezone)
|
||||||
if not self.settings.show_date_to:
|
if not self.settings.show_date_to or not self.date_to:
|
||||||
return ""
|
return ""
|
||||||
return _date(
|
return _date(
|
||||||
self.date_to.astimezone(tz),
|
self.date_to.astimezone(tz),
|
||||||
|
|||||||
Reference in New Issue
Block a user