Adding default time logic for windows clones

This commit is contained in:
Adam Heeren 2016-04-13 15:41:58 -04:00
parent f04298f78d
commit 0b97c0a6f4
1 changed files with 3 additions and 0 deletions

View File

@ -1275,6 +1275,9 @@ func (vm *virtualMachine) deployVirtualMachine(c *govmomi.Client) error {
var identity_options types.BaseCustomizationIdentitySettings
if strings.HasPrefix(template_mo.Config.GuestId, "win") {
var timeZone int
if vm.timeZone == "Etc/UTC" {
vm.timeZone = "085"
}
timeZone, err := strconv.Atoi(vm.timeZone)
if err != nil {
return fmt.Errorf("Error converting TimeZone: %s", err)