Skip to content

Instantly share code, notes, and snippets.

Created August 19, 2013 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6268644 to your computer and use it in GitHub Desktop.
Save anonymous/6268644 to your computer and use it in GitHub Desktop.
diff --git a/acrylamid/views/feeds.py b/acrylamid/views/feeds.py
index af43fc3..29d5559 100644
--- a/acrylamid/views/feeds.py
+++ b/acrylamid/views/feeds.py
@@ -67,6 +67,8 @@ class Feed(View):
raise StopIteration
updated = entrylist[0].date if entrylist else datetime.utcnow()
+ if not updated.tzinfo:
+ updated = updated.replace(tzinfo=Timezone(0))
html = tt.render(conf=conf, env=union(env, route=self.route,
updated=updated, entrylist=entrylist))
yield html, path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment