fixing date issue

pull/1/head
Jared Cosulich 7 years ago
parent 5bf44c310d
commit fd6ec3af2a

@ -310,7 +310,7 @@ namespace :data do
next if answer_index == 0 next if answer_index == 0
responded_at = Date.strptime(row['recordedDate'], '%Y-%m-%d %H:%M:%S') responded_at = Date.strptime(row['recordedDate'], '%Y-%m-%d %H:%M:%S') rescue Date.today
begin begin
recipient.attempts.create(question: question, answer_index: answer_index, responded_at: responded_at) recipient.attempts.create(question: question, answer_index: answer_index, responded_at: responded_at)
rescue Exception => e rescue Exception => e

Loading…
Cancel
Save