diff --git a/app/helpers/ci/builds_helper.rb b/app/helpers/ci/builds_helper.rb index 15494ca8a..c0e591069 100644 --- a/app/helpers/ci/builds_helper.rb +++ b/app/helpers/ci/builds_helper.rb @@ -1,7 +1,7 @@ module Ci::BuildsHelper def format_utc_time(unix_time) return nil if unix_time == 0 - DateTime.strptime(unix_time.to_s,'%s').strftime("%Y-%m-%d %H:%M") + Time.at(unix_time).strftime("%Y-%m-%d %H:%M") end def render_duartion_time(end_time, start_time)