Show end time in subevent list (Z#23237612)

This commit is contained in:
Kara Engelhardt
2026-07-20 12:00:22 +02:00
committed by pajowu
parent 2de032c2be
commit 214ea5fcd3
3 changed files with 15 additions and 2 deletions
+6
View File
@@ -179,6 +179,12 @@ class EventMixin:
self.date_to.astimezone(tz), ("D" if short else "l")
)
def is_same_day(self):
if not self.date_to:
return True
else:
return self.date_from.astimezone(self.timezone).date() == self.date_to.astimezone(self.timezone).date()
def get_date_range_display(self, tz=None, force_show_end=False, as_html=False, try_to_show_times=False) -> str:
"""
Returns a formatted string containing the start date and the end date