diff options
author | Dan McGee <dan@archlinux.org> | 2012-11-06 08:22:44 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-11-06 08:22:44 -0600 |
commit | 554df3f8cfdce7a41904ac985dc2e6f3d43c358d (patch) | |
tree | 895cb4c3bd6006e589f096c4cea815e1993f798a /feeds.py | |
parent | 177b93ac21486c32afba543f77b9273f994f5e20 (diff) |
Remove explicit timezone handling from feeds
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'feeds.py')
-rw-r--r-- | feeds.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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() |