summaryrefslogtreecommitdiff
path: root/app/workers/wait_for_cluster_creation_worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/wait_for_cluster_creation_worker.rb')
-rw-r--r--app/workers/wait_for_cluster_creation_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/wait_for_cluster_creation_worker.rb b/app/workers/wait_for_cluster_creation_worker.rb
index eab340070e1..5aa3bbdaa9d 100644
--- a/app/workers/wait_for_cluster_creation_worker.rb
+++ b/app/workers/wait_for_cluster_creation_worker.rb
@@ -11,7 +11,7 @@ class WaitForClusterCreationWorker
Ci::FetchGcpOperationService.new.execute(cluster) do |operation|
case operation.status
when 'RUNNING'
- if TIMEOUT < Time.zone.now - operation.start_time.to_time
+ if TIMEOUT < Time.now.utc - operation.start_time.to_time.utc
return cluster.make_errored!("Cluster creation time exceeds timeout; #{TIMEOUT}")
end