Browse Source

Merge pull request #306 from andyli/fix-sitemap-timezone

Sitemap plug-in: '%s' should be '%z' for printing out timezone
Justin Mayer 10 years ago
parent
commit
3753c9ab3a
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"