summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-07-24 16:42:46 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-07-24 16:42:46 (GMT)
commit68163d1a167e493744b617045205ee301943d340 (patch)
treea11b40f31b920d735828e235f36b7fce19ccdaa7
parent14f692cc393490087f154cd015129da4573724d5 (diff)
fixed time comparison.
-rw-r--r--program/templatetags/timeslots.py2
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))