From 0c885c2a7bfbf874c6ec3fb3214eefdc1e713820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 27 Feb 2023 14:14:49 +0100 Subject: [PATCH] [dist] clouduploader: Time.zone is not Ruby Time.zone is ActiveSupport but we are not in rails here. We calculate only a time difference, so the zone does not matter anyway. --- dist/clouduploader.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/clouduploader.rb b/dist/clouduploader.rb index 6b329762ea6..5f16a94f7d7 100755 --- a/dist/clouduploader.rb +++ b/dist/clouduploader.rb @@ -10,7 +10,7 @@ module CloudUploader # Module method for uploading the image depending on the platform def self.upload(_user, platform, backend_image_file, job_data_file, image_filename, result_path) - start = Time.zone.now + start = Time.now STDOUT.sync = true STDOUT.write("Start uploading image #{image_filename}.\n") @@ -26,7 +26,7 @@ def self.upload(_user, platform, backend_image_file, job_data_file, image_filena abort('No valid platform. Valid platforms are "ec2" and "azure".') end - diff = Time.zone.now - start + diff = Time.now - start STDOUT.write("Upload took: #{Time.at(diff).utc.strftime('%H:%M:%S')}\n") end