handlers.py
changeset 117 f0b4097f5781
parent 116 81da986f6ed5
child 118 f530c158aa07
equal deleted inserted replaced
116:81da986f6ed5 117:f0b4097f5781
   198         prefs           = request.prefs,
   198         prefs           = request.prefs,
   199         channel         = channel,
   199         channel         = channel,
   200         month           = target,
   200         month           = target,
   201     )
   201     )
   202 
   202 
   203 @preferences.handler(prefs.count)
   203 @preferences.handler(prefs.count, prefs.timezone)
   204 def channel_date (request, channel, date, count, page=1, type=None) :
   204 def channel_date (request, channel, date, count, timezone, page=1, type=None) :
   205     """
   205     """
   206         Display all log data for the given date
   206         Display all log data for the given date
   207     """
   207     """
   208     
   208     
   209     # convert date to user's timezone
   209     # convert date to user's timezone
   210     date = date.astimezone(request.prefs['timezone'])
   210     date = timezone.localize(date)
   211 
   211 
   212 #    print
   212 #    print
   213 #    print "channel_date: date=%s" % date
   213 #    print "channel_date: date=%s" % date
   214 
   214 
   215     # get that day's events, either paged or not
   215     # get that day's events, either paged or not