From c8da8a2ce5c3413aece152d09cfb9dbec93e9f5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Czern=C3=BD?= Date: Wed, 2 Nov 2022 10:26:06 +0100 Subject: [PATCH] M #-: Fix parsing of scheduled time (#2332) --- src/cli/one_helper/onevm_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/one_helper/onevm_helper.rb b/src/cli/one_helper/onevm_helper.rb index a5b42ac0ad..87985fe4d0 100644 --- a/src/cli/one_helper/onevm_helper.rb +++ b/src/cli/one_helper/onevm_helper.rb @@ -125,7 +125,7 @@ class OneVMHelper < OpenNebulaHelper::OneHelper options[:schedule] = Time.now.to_i else begin - options[:schedule] = Time.new(o).to_i + options[:schedule] = Time.parse(o).to_i rescue StandardError STDERR.puts "Error parsing time spec: #{o}" exit(-1)