From c101dc8707085e9eb06d276b284ebdbab28c3319 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Thu, 13 Feb 2014 20:56:56 -0800 Subject: [PATCH] Remove String format support for retried_at and failed_at --- web/views/_job_info.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/views/_job_info.erb b/web/views/_job_info.erb index f8dd2c3b..b494c420 100644 --- a/web/views/_job_info.erb +++ b/web/views/_job_info.erb @@ -53,12 +53,12 @@ <%= t('LastRetry') %> - <%= relative_time(job['retried_at'].is_a?(Numeric) ? Time.at(job['retried_at']) : Time.parse(job['retried_at'])) %> + <%= relative_time(Time.at(job['retried_at'])) %> <% else %> <%= t('OriginallyFailed') %> - <%= relative_time(job['failed_at'].is_a?(Numeric) ? Time.at(job['failed_at']) : Time.parse(job['failed_at'])) %> + <%= relative_time(Time.at(job['failed_at'])) %> <% end %>