Sfoglia il codice sorgente

Fixed #300. Sitemap plug-in: '%s' should be '%z' for printing out timezone.

Andy Li 10 anni fa
parent
commit
1b67c9895e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      sitemap/sitemap.py

+ 1 - 1
sitemap/sitemap.py

@@ -47,7 +47,7 @@ XML_FOOTER = """
 
 def format_date(date):
     if date.tzinfo:
-        tz = date.strftime('%s')
+        tz = date.strftime('%z')
         tz = tz[:-2] + ':' + tz[-2:]
     else:
         tz = "-00:00"