mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
ADD paginate for builds api
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
module Ci::BuildsHelper
|
||||
def format_utc_time(unix_time)
|
||||
Rails.logger.info "00000000000000 #{unix_time}"
|
||||
return nil if unix_time.blank?
|
||||
DateTime.strptime(unix_time.to_s,'%s').strftime("%Y-%m-%d %H:%M")
|
||||
end
|
||||
|
||||
def render_duartion_time(end_time, start_time)
|
||||
(end_time - start_time) / 10000
|
||||
return nil if end_time == 0
|
||||
game_spend_time(end_time - start_time)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user