mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
FIX build time bug
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user