Commit 4498bb78 authored by Annabel Dunstone's avatar Annabel Dunstone

Change 3600 to 1.hour

parent e9bd8b61
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment