fixing date issue

This commit is contained in:
Jared Cosulich 2018-07-21 17:48:46 -04:00
parent 5bf44c310d
commit fd6ec3af2a

View file

@ -310,7 +310,7 @@ namespace :data do
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
recipient.attempts.create(question: question, answer_index: answer_index, responded_at: responded_at)
rescue Exception => e