diff --git a/lib/GLPI/Agent/SOAP/VMware/Host.pm b/lib/GLPI/Agent/SOAP/VMware/Host.pm index 166caabbb..ea76bcaae 100644 --- a/lib/GLPI/Agent/SOAP/VMware/Host.pm +++ b/lib/GLPI/Agent/SOAP/VMware/Host.pm @@ -448,7 +448,10 @@ sub getVirtualMachines { } } unless (empty($machine->{summary}{runtime}{bootTime})) { - $vmInventory->{OPERATINGSYSTEM}->{BOOT_TIME} = $machine->{summary}{runtime}{bootTime}; + my ($bootdate, $boottime) = + $machine->{summary}{runtime}{bootTime} =~ /^([0-9-]+).(\d+:\d+:\d+)/; + $boottime = "$bootdate $boottime" if $bootdate && $boottime; + $vmInventory->{OPERATINGSYSTEM}->{BOOT_TIME} = $boottime if $boottime; } }