Browse Source

FIX build finished time bug

tags/v1.0.0
Jasder 5 years ago
parent
commit
41f876a714
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/helpers/ci/builds_helper.rb

+ 1
- 1
app/helpers/ci/builds_helper.rb View File

@@ -1,7 +1,7 @@
module Ci::BuildsHelper
def format_utc_time(unix_time)
Rails.logger.info "00000000000000 #{unix_time}"
return nil if unix_time.blank?
return nil if unix_time == 0
DateTime.strptime(unix_time.to_s,'%s').strftime("%Y-%m-%d %H:%M")
end



Loading…
Cancel
Save