This commit is contained in:
6
main.go
6
main.go
@@ -211,7 +211,11 @@ func main() {
|
||||
|
||||
// So we can convert vCenter UTC to our local timezone
|
||||
log.Printf("Setting timezone to '%s'\n", *vTZ)
|
||||
location, _ = time.LoadLocation(*vTZ)
|
||||
location, err = time.LoadLocation(*vTZ)
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error setting timezone to %s : %s\n", *vTZ, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
u, err := url.Parse(*vURL)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user