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

Change 3600 to 1.hour

parent e9bd8b61
...@@ -26,7 +26,7 @@ module TimeHelper ...@@ -26,7 +26,7 @@ module TimeHelper
def duration_in_numbers(finished_at, started_at) def duration_in_numbers(finished_at, started_at)
diff_in_seconds = finished_at.to_i - started_at.to_i 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) Time.at(diff_in_seconds).utc.strftime(time_format)
end 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