lib/git/semaphore/api_enrich.rb in git-semaphore-2.7.0 vs lib/git/semaphore/api_enrich.rb in git-semaphore-2.8.0

- old
+ new

@@ -36,9 +36,17 @@ finished_at = Time.parse(finished_at) build['date'] = { started_at: started_at.to_date, finished_at: finished_at.to_date, } + build['iso8601'] = { + started_at: started_at.utc.iso8601, + finished_at: finished_at.utc.iso8601, + } + build['epoch'] = { + started_at: started_at.to_f, + finished_at: finished_at.to_f, + } build['duration'] = { seconds: (finished_at - started_at).to_i, minutes: format('%0.2f', (finished_at - started_at) / 60).to_f, } end