X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b3d6d4291e19e1368b48d13cf67880f7c59b5d24..c409bc5a7d49e7a3428e572327502a485c1e63f7:/lib/osm.rb?ds=sidebyside diff --git a/lib/osm.rb b/lib/osm.rb index dea48cc71..77b07ce3d 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -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