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:
parent
058acb0008
commit
c8da8a2ce5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user