Arthur 10 yıl önce
ebeveyn
işleme
42960e107a
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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)