mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-11-01 06:51:19 +00:00
Fix: rtcflags: ignore startdate 'now'
If 'now' is passed to the startdate option, the kvm start fails with
below failure.
kvm: invalid datetime format
valid formats: '2006-06-17T16:01:21' or '2006-06-17'
With this patch, 'now' is ignored and not passed to the rtcflags (-rtc).
Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
(cherry picked from commit 85f0511db3)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
639ed92f27
commit
c5fdfea839
@ -3789,7 +3789,7 @@ sub config_to_command {
|
||||
push @$machineFlags, "type=${machine_type}";
|
||||
}
|
||||
|
||||
if ($conf->{startdate}) {
|
||||
if (($conf->{startdate}) && ($conf->{startdate} ne 'now')) {
|
||||
push @$rtcFlags, "base=$conf->{startdate}";
|
||||
} elsif ($useLocaltime) {
|
||||
push @$rtcFlags, 'base=localtime';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user