]> git.openstreetmap.org Git - rails.git/blobdiff - lib/osm.rb
Adding a guid element to feed items, replicates URL.
[rails.git] / lib / osm.rb
index 7f1f4d101b5072e40502573b79a8a68dbc0f8f6b..6d2ef9efdcfb06394df481aa29f5780442ebcde1 100644 (file)
@@ -290,12 +290,16 @@ module OSM
       link << url
       item << link
 
+      guid = XML::Node.new 'guid'
+      guid << url
+      item << guid
+
       description = XML::Node.new 'description'
       description << description_text
       item << description
 
       pubDate = XML::Node.new 'pubDate'
-      pubDate << timestamp.xmlschema
+      pubDate << timestamp.to_s(:rfc822)
       item << pubDate
 
       if latitude