diff options
-rw-r--r-- | app/models/ci/runner.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb index 8fe20622723..7cf36c0bfe0 100644 --- a/app/models/ci/runner.rb +++ b/app/models/ci/runner.rb @@ -69,7 +69,11 @@ module Ci end def cached_contacted_at - runner_info_cache(:contacted_at) || self.contacted_at + if runner_info_cache(:contacted_at) + Time.zone.parse(runner_info_cache(:contacted_at)) + else + self.contacted_at + end end def set_default_values |