Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Properly format sitemap lastmod date

  • Loading branch information...
commit 445a9f7dc2b252e478ff06e7bfb383166a80d514 1 parent 2c42aed
@darkwing darkwing authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  apps/wiki/cron.py
View
2  apps/wiki/cron.py
@@ -99,7 +99,7 @@ def build_sitemaps():
sitemap_url = ("https://%s/sitemaps/%s/sitemap.xml" % (
Site.objects.get_current().domain, locale))
sitemap_index = sitemap_index + sitemap_element % (sitemap_url,
- time.strftime('%Y-%m-%dT%H:%M:%S', time.localtime()))
+ time.strftime('%Y-%m-%dT%H:%M:%S+00:00', time.gmtime()))
sitemap_index = sitemap_index + "</sitemapindex>"
index_file = open('%s/sitemap.xml' % settings.MEDIA_ROOT, 'w')
Please sign in to comment.
Something went wrong with that request. Please try again.