1.1 --- a/imipweb/data.py Tue Oct 20 18:38:42 2015 +0200
1.2 +++ b/imipweb/data.py Tue Oct 20 18:39:52 2015 +0200
1.3 @@ -154,6 +154,14 @@
1.4 if not dtend:
1.5 return None
1.6
1.7 + # Handle same day times.
1.8 +
1.9 + elif self.times_enabled:
1.10 + formdate = FormDate(self.start.date, self.end.hour, self.end.minute, self.end.second, self.end.tzid)
1.11 + dtend = formdate.as_datetime(self.times_enabled)
1.12 + if not dtend:
1.13 + return None
1.14 +
1.15 # Otherwise, treat the end date as the start date. Datetimes are
1.16 # handled by making the event occupy the rest of the day.
1.17