|
|
@ -81,7 +81,12 @@ end
|
|
|
|
|
|
|
|
|
|
|
|
# Get a real date
|
|
|
|
# Get a real date
|
|
|
|
termine.each do |termin|
|
|
|
|
termine.each do |termin|
|
|
|
|
termin["date"] = Date.parse(datum2isodate(termin["datum"]))
|
|
|
|
if termin["datum"] !~ /^[0-9]{2}\.[0-9]{2}\.[0-9]{4}.*$/
|
|
|
|
|
|
|
|
puts "#{termin["datum"]} looks funny, fall back to today."
|
|
|
|
|
|
|
|
termin["date"] = Date.today()
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
termin["date"] = Date.parse(datum2isodate(termin["datum"]))
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
termine = termine.sort do |x,y|
|
|
|
|
termine = termine.sort do |x,y|
|
|
|
|