Remove explicit timezone handling from feeds

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2012-11-06 08:22:44 -06:00
parent 177b93ac21
commit 554df3f8cf

View File

@ -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 @@ def item_guid(self, item):
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 @@ def item_guid(self, item):
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()