Remove explicit timezone handling from feeds
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
177b93ac21
commit
554df3f8cf
5
feeds.py
5
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 @@ 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()
|
||||
|
Loading…
Reference in New Issue
Block a user