Przeglądaj źródła

Merge pull request #274 from arthur-alves/master

FIX issue #264
Kura 10 lat temu
rodzic
commit
7019f29eaf
1 zmienionych plików z 1 dodań i 1 usunięć
  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)