From f7199089cbccbeefcea311f4d6b9f016f1d70554 Mon Sep 17 00:00:00 2001 From: Elena Xin <39109137+sinbai@users.noreply.github.com> Date: Wed, 9 Aug 2023 13:32:56 +0800 Subject: [PATCH] fix acc test failure (#22867) Co-authored-by: Elena Xin --- internal/services/mysql/mysql_server_resource.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/services/mysql/mysql_server_resource.go b/internal/services/mysql/mysql_server_resource.go index c40494cc942c..bbde139d1ab1 100644 --- a/internal/services/mysql/mysql_server_resource.go +++ b/internal/services/mysql/mysql_server_resource.go @@ -420,11 +420,11 @@ func resourceMySqlServerCreate(d *pluginsdk.ResourceData, meta interface{}) erro if !ok || v.(string) == "" { return fmt.Errorf("restore_point_in_time must be set when create_mode is PointInTimeRestore") } - time, _ := time.Parse(time.RFC3339, v.(string)) // should be validated by the schema + t, _ := time.Parse(time.RFC3339, v.(string)) // should be validated by the schema props = &servers.ServerPropertiesForRestore{ SourceServerId: source, - RestorePointInTime: time.String(), + RestorePointInTime: t.Format(time.RFC3339), InfrastructureEncryption: pointer.To(infraEncrypt), PublicNetworkAccess: pointer.To(publicAccess), MinimalTlsVersion: pointer.To(tlsMin),