Parcourir la source

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

Andy Li il y a 10 ans
Parent
commit
1b67c9895e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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"