handlers.py
changeset 111 95c0c49d76aa
parent 108 d0aca7894fc5
child 112 090192b64d7e
--- a/handlers.py	Wed Feb 11 22:01:53 2009 +0200
+++ b/handlers.py	Wed Feb 11 22:24:55 2009 +0200
@@ -201,7 +201,7 @@
     """
 
     # fix date timezone
-    date = date.replace(tzinfo=timezone)
+    date = timezone.localize(date)
 
     # get that day's events, either paged or not
     if page :
@@ -230,6 +230,10 @@
             count           = count,
             max             = max,
             lines           = lines,
+
+            # for prev/next date
+            date_next       = channel.source.get_next_date(date),
+            date_prev       = channel.source.get_prev_date(date),
         )
 
 @preferences.handler(prefs.formatter, prefs.count)