Browse Source

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

Andy Li 9 years ago
parent
commit
1b67c9895e
1 changed files with 1 additions and 1 deletions
  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"