diff --git a/app/views/kuroko2/job_timelines/dataset.json.jbuilder b/app/views/kuroko2/job_timelines/dataset.json.jbuilder index e41dcf01..f78b3485 100644 --- a/app/views/kuroko2/job_timelines/dataset.json.jbuilder +++ b/app/views/kuroko2/job_timelines/dataset.json.jbuilder @@ -5,7 +5,7 @@ json.data do json.id instance.id json.content "##{instance.job_definition.id} #{instance.job_definition.name}" json.start instance.created_at.strftime('%Y-%m-%d %H:%M:%S') - json.end (instance.error_at || instance.canceled_at || instance.finished_at).try!(:strftime, '%Y-%m-%d %H:%M:%S') + json.end (instance.error_at || instance.canceled_at || instance.finished_at || Time.current).try!(:strftime, '%Y-%m-%d %H:%M:%S') json.group instance.job_definition.id end end