Enforce Timezone rule in Rubocop
This commit is contained in:
parent
995e189637
commit
dd27167c5d
6 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue