Skip to content

Commit 8603c1d

Browse files
committed
Workaround for golang/go#21881
1 parent f3b9dc8 commit 8603c1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datadog/resource_datadog_downtime.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"strings"
1010
"time"
1111

12+
"4d63.com/tz"
1213
datadogV1 "github.com/DataDog/datadog-api-client-go/api/v1/datadog"
1314
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
1415
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
@@ -494,7 +495,7 @@ func validateDatadogDowntimeTimezone(v interface{}, k string) (ws []string, erro
494495
zone, _ := time.Now().Local().Zone()
495496
return validateDatadogDowntimeRecurrenceType(zone, k)
496497
default:
497-
_, err := time.LoadLocation(value)
498+
_, err := tz.LoadLocation(value)
498499
if err != nil {
499500
errors = append(errors, fmt.Errorf(
500501
"%q contains an invalid timezone parameter: %q, Valid parameters are IANA Time Zone names",

0 commit comments

Comments
 (0)