Fixed a broken test

This commit is contained in:
Raphael Michel
2016-11-09 12:26:06 +01:00
parent 0fc102615f
commit 2e9e8eabb1

View File

@@ -143,7 +143,7 @@ class Event(LoggedModel):
if ``show_date_to`` is ``False``.
"""
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 _date(
self.date_to.astimezone(tz),