diff options
Diffstat (limited to 'program/templatetags')
-rw-r--r-- | program/templatetags/timeslots.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/templatetags/timeslots.py b/program/templatetags/timeslots.py index 9b83a80..902de36 100644 --- a/program/templatetags/timeslots.py +++ b/program/templatetags/timeslots.py @@ -15,7 +15,7 @@ def duration_until(end): @register.simple_tag def duration_since(start): - if start.time()<time(0,0): + if start.time() < time(23,59): end = datetime.combine(start.date()+timedelta(days=1), time(6,0)) else: end = datetime.combine(start.date(), time(6,0)) |