Treat a timestamp that can't be parse as if it didn't exist.

This commit is contained in:
Tom Hughes 2007-06-26 23:21:20 +00:00
parent d77fb110fb
commit dcac9dfeca

View 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