From a1e9d07d862534b46b8779e65743b9b92a387145 Mon Sep 17 00:00:00 2001 From: Eisuke Oishi Date: Fri, 11 Nov 2016 16:43:05 +0900 Subject: [PATCH] Always define end_time for job limelines --- app/views/kuroko2/job_timelines/dataset.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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