X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/eada120ffac9f6b6ecb3db1fe1c4397cb6c0bd44..0e66875ace5baf3b86221abd7db86293422c0898:/lib/osm.rb diff --git a/lib/osm.rb b/lib/osm.rb index 57714c68e..6d2ef9efd 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -290,18 +290,22 @@ 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 lat_el = XML::Node.new 'geo:lat' lat_el << latitude.to_s - item << lat_el if lat_el + item << lat_el end if longitude