diff --git a/pkg/xray/resource/resource_xray_ignore_rule.go b/pkg/xray/resource/resource_xray_ignore_rule.go index b1dab5a5..7daa144c 100644 --- a/pkg/xray/resource/resource_xray_ignore_rule.go +++ b/pkg/xray/resource/resource_xray_ignore_rule.go @@ -114,7 +114,7 @@ func (m IgnoreRuleResourceModel) toAPIModel(ctx context.Context, apiModel *Ignor var expiresAt *time.Time if m.ExpiredAt.ValueString() != "" { - parsedTime, err := time.Parse("2006-01-02", m.ExpiredAt.ValueString()) + parsedTime, err := time.ParseInLocation("2006-01-02", m.ExpiredAt.ValueString(), time.Local) if err != nil { ds.AddError( "failed to parse date/time string",