1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-08 21:17:43 +03:00

M #-: Fix parsing of scheduled time (#2332)

This commit is contained in:
Pavel Czerný 2022-11-02 10:26:06 +01:00 committed by GitHub
parent 058acb0008
commit c8da8a2ce5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)