]> git.openstreetmap.org Git - rails.git/blobdiff - lib/osm.rb
Show an edit link on the trace details page, and use the same zoom level
[rails.git] / lib / osm.rb
index dea48cc715f84d5b99b353e48caffd88d752ce92..77b07ce3d53bd2b038bdae1eb736916b0e4c0c80 100644 (file)
@@ -101,8 +101,11 @@ module OSM
 
       parser.listen( :characters, %w{ time } ) do |text|
         if text && text != ''
-          date = DateTime.parse(text)
-          gotdate = true
+          begin
+            date = DateTime.parse(text)
+            gotdate = true
+          rescue
+          end
         end
       end