Explorar el Código

Merge pull request #274 from arthur-alves/master

FIX issue #264
Kura hace 10 años
padre
commit
7019f29eaf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      sitemap/sitemap.py

+ 1 - 1
sitemap/sitemap.py

@@ -174,7 +174,7 @@ class SitemapGenerator(object):
         for (wrapper, articles) in wrappers:
             lastmod = datetime.min.replace(tzinfo=self.timezone)
             for article in articles:
-                lastmod = max(lastmod, article.date)
+                lastmod = max(lastmod, article.date.replace(tzinfo=self.timezone))
                 try:
                     modified = self.get_date_modified(article, datetime.min.replace(tzinfo=self.timezone));
                     lastmod = max(lastmod, modified)