dynamic_sitemaps 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ xml.sitemapindex "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
4
4
  xml.sitemap do
5
5
  xml.loc url_for(:host => request.host, :page => i + 1)
6
6
  if page.last_mod
7
- xml.lastmod page.last_mod.to_date
7
+ xml.lastmod page.last_mod.to_datetime.strftime("%Y-%m-%dT%H:%M:%S%:z")
8
8
  end
9
9
  end
10
10
  end
@@ -5,7 +5,7 @@ xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
5
5
  xml.loc url.loc
6
6
 
7
7
  if url.last_mod
8
- xml.lastmod url.last_mod.to_date
8
+ xml.lastmod url.last_mod.to_datetime.strftime("%Y-%m-%dT%H:%M:%S%:z")
9
9
  end
10
10
 
11
11
  if url.change_freq
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 4
9
- version: 1.0.4
8
+ - 5
9
+ version: 1.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Lasse Bunk
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-01-04 00:00:00 +01:00
17
+ date: 2012-01-06 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies: []
20
20