FIX build time bug

This commit is contained in:
Jasder
2020-08-27 16:01:10 +08:00
parent 0461c2735b
commit b26c2f273f

View File

@@ -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)