Change 3600 to 1.hour
This commit is contained in:
parent
e9bd8b615b
commit
4498bb7833
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue