summaryrefslogtreecommitdiff
path: root/app/models/concerns/statuseable.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-15 21:32:36 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-08-15 21:32:36 +0800
commitce641335167230d288fbb2ec277548acbaff9dd7 (patch)
tree558c3a2c7bdded443da9229365a68c4308841c11 /app/models/concerns/statuseable.rb
parent0ea81ae50a702c7341b1bd6fd15002ee78ac4964 (diff)
downloadgitlab-ce-ce641335167230d288fbb2ec277548acbaff9dd7.tar.gz
Introduce Gitlab::Utils.now so that it's easier to stub
Diffstat (limited to 'app/models/concerns/statuseable.rb')
-rw-r--r--app/models/concerns/statuseable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/statuseable.rb b/app/models/concerns/statuseable.rb
index 750f937b724..9f73c5c9467 100644
--- a/app/models/concerns/statuseable.rb
+++ b/app/models/concerns/statuseable.rb
@@ -87,7 +87,7 @@ module Statuseable
if started_at && finished_at
finished_at - started_at
elsif started_at
- Time.now - started_at
+ Gitlab::Utils.now - started_at
end
end
end