FIX build time bug
This commit is contained in:
parent
0461c2735b
commit
b26c2f273f
|
@ -1,7 +1,7 @@
|
||||||
module Ci::BuildsHelper
|
module Ci::BuildsHelper
|
||||||
def format_utc_time(unix_time)
|
def format_utc_time(unix_time)
|
||||||
return nil if unix_time == 0
|
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
|
end
|
||||||
|
|
||||||
def render_duartion_time(end_time, start_time)
|
def render_duartion_time(end_time, start_time)
|
||||||
|
|
Loading…
Reference in New Issue