Skip to content

Commit 9ee2ddc

Browse files
author
Clicia Scarlet
committed
Fix elapsed time
1 parent 15447bf commit 9ee2ddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongo_masker.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def track_time
4545
end
4646

4747
def format_time_diff(start_at, finish_at)
48-
output = Time.at(finish_at - start_at).strftime '%H hours %M minutes %S seconds'
48+
output = Time.at(finish_at - start_at).utc.strftime '%H hours %M minutes %S seconds'
4949
output.gsub(/^0+ hours /, '').gsub(/^0+ minutes /, '')
5050
end
5151

0 commit comments

Comments
 (0)