summaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-11-06 08:22:44 -0600
committerDan McGee <dan@archlinux.org>2012-11-06 08:22:44 -0600
commit554df3f8cfdce7a41904ac985dc2e6f3d43c358d (patch)
tree895cb4c3bd6006e589f096c4cea815e1993f798a /feeds.py
parent177b93ac21486c32afba543f77b9273f994f5e20 (diff)
Remove explicit timezone handling from feeds
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'feeds.py')
-rw-r--r--feeds.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/feeds.py b/feeds.py
index d00aec87..49e0bc6e 100644
--- a/feeds.py
+++ b/feeds.py
@@ -1,5 +1,4 @@
import hashlib
-import pytz
from django.contrib.sites.models import Site
from django.contrib.syndication.views import Feed
@@ -106,7 +105,7 @@ class PackageFeed(Feed):
date.strftime('%Y%m%d%H%M'))
def item_pubdate(self, item):
- return item.last_update.replace(tzinfo=pytz.utc)
+ return item.last_update
def item_categories(self, item):
return (item.repo.name, item.arch.name)
@@ -144,7 +143,7 @@ class NewsFeed(Feed):
return item.guid
def item_pubdate(self, item):
- return item.postdate.replace(tzinfo=pytz.utc)
+ return item.postdate
def item_author_name(self, item):
return item.author.get_full_name()