Enforce Timezone rule in Rubocop

This commit is contained in:
Mathieu Magnin 2019-02-18 11:56:09 +01:00
parent 995e189637
commit dd27167c5d
6 changed files with 6 additions and 6 deletions

View file

@ -60,7 +60,7 @@ class ProgressReport
def format_duration(seconds)
if seconds.finite?
Time.at(seconds).utc.strftime('%H:%M:%S')
Time.zone.at(seconds).strftime('%H:%M:%S')
else
'--:--:--'
end