From a1d70a2116673ac46f4946115bdb5048137689a2 Mon Sep 17 00:00:00 2001 From: Phil Hodgson Date: Sat, 20 Dec 2014 18:46:51 +0100 Subject: [PATCH] 4232: fixes error displaying queue time (created_at comes out in iso8601 format and must be parsed as such) --- .../app/views/pipeline_instances/_running_component.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/workbench/app/views/pipeline_instances/_running_component.html.erb b/apps/workbench/app/views/pipeline_instances/_running_component.html.erb index c916ee9530..dc9f00de16 100644 --- a/apps/workbench/app/views/pipeline_instances/_running_component.html.erb +++ b/apps/workbench/app/views/pipeline_instances/_running_component.html.erb @@ -39,7 +39,7 @@ <% if current_job[:state] == "Queued" %> <%# column offset 5 %>
- <% queuetime = Time.now - current_job[:created_at] %> + <% queuetime = Time.now - Time.iso8601(current_job[:created_at]) %> Queued for <%= render_runtime(queuetime, true) %>. <% begin %> <% if current_job[:queue_position] == 0 %> -- 2.30.2