Created
August 19, 2013 12:33
-
-
Save anonymous/6268644 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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