Skip to content

Commit

Permalink
fix rfc822 filter for Mako
Browse files Browse the repository at this point in the history
  • Loading branch information
posativ committed Mar 18, 2013
1 parent 20d7df9 commit 0a227df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acrylamid/views/feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def init(self, conf, env, num_entries=25):

self.num_entries = num_entries
env.engine.register(
'rfc822', lambda dt: format_date_time(total_seconds(dt - epoch)))
'rfc822', lambda dt: unicode(format_date_time(total_seconds(dt - epoch))))
self.type = 'rss'


Expand All @@ -133,5 +133,5 @@ def init(self, conf, env, num_entries=25):

self.num_entries = num_entries
env.engine.register(
'rfc822', lambda dt: format_date_time(total_seconds(dt - epoch)))
'rfc822', lambda dt: unicode(format_date_time(total_seconds(dt - epoch))))
self.type = 'rss'

0 comments on commit 0a227df

Please sign in to comment.