diff options
author | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-07-08 00:48:10 +0300 |
---|---|---|
committer | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-07-08 00:48:10 +0300 |
commit | 4498bb78332ba5f03b23a4f8ddba2eb034830b39 (patch) | |
tree | bf9156d5ca6f3464bb9bcae07bcc7d9539dc15cf /app/helpers/time_helper.rb | |
parent | e9bd8b615b9a0a88aaf7bcc13f5df73deef74805 (diff) |
Change 3600 to 1.hour
Diffstat (limited to 'app/helpers/time_helper.rb')
-rw-r--r-- | app/helpers/time_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/time_helper.rb b/app/helpers/time_helper.rb index d1086025ad5..8cb82c2d5cc 100644 --- a/app/helpers/time_helper.rb +++ b/app/helpers/time_helper.rb @@ -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 |