task_helper: fix duration formatting

If we don't convert the duration to utc, it starts at 01:00:00
This commit is contained in:
Pierre de La Morinerie 2019-05-29 11:48:21 +02:00
parent f1875e9c25
commit 4d9cb0bb7a

View file

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