Ticket #9957: feeds_timezone_check.diff

File feeds_timezone_check.diff, 521 bytes (added by Rajat Upadhyaya, 16 years ago)
  • django/contrib/syndication/feeds.py

     
    144144                author_email = author_link = None
    145145
    146146            pubdate = self.__get_dynamic_attr('item_pubdate', item)
    147             if pubdate:
     147            if pubdate and not pubdate.tzinfo:
    148148                now = datetime.now()
    149149                utcnow = datetime.utcnow()
    150150
Back to Top