app/views/sitemaps/sitemap.builder in dynamic_sitemaps-1.0.4 vs app/views/sitemaps/sitemap.builder in dynamic_sitemaps-1.0.5
- old
+ new
@@ -3,10 +3,10 @@
@urls.each do |url|
xml.url do
xml.loc url.loc
if url.last_mod
- xml.lastmod url.last_mod.to_date
+ xml.lastmod url.last_mod.to_datetime.strftime("%Y-%m-%dT%H:%M:%S%:z")
end
if url.change_freq
xml.changefreq url.change_freq
end