Change 3600 to 1.hour

This commit is contained in:
Annabel Dunstone 2016-07-07 16:48:10 -05:00
parent e9bd8b615b
commit 4498bb7833

View file

@ -26,7 +26,7 @@ module TimeHelper
def duration_in_numbers(finished_at, started_at)
diff_in_seconds = finished_at.to_i - started_at.to_i
time_format = diff_in_seconds < 3600 ? "%M:%S" : "%H:%M:%S"
time_format = diff_in_seconds < 1.hour ? "%M:%S" : "%H:%M:%S"
Time.at(diff_in_seconds).utc.strftime(time_format)
end