Skip to content

Commit f532bcb

Browse files
committed
convert last_updated to date (string) from timestamp
1 parent 2cbb077 commit f532bcb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sysdig/resource_sysdig_secure_zone.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"fmt"
66
"strconv"
7+
"time"
78

89
v2 "github.com/draios/terraform-provider-sysdig/sysdig/internal/client/v2"
910
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
@@ -109,7 +110,7 @@ func resourceSysdigZoneRead(ctx context.Context, d *schema.ResourceData, m inter
109110
_ = d.Set("is_system", zone.IsSystem)
110111
_ = d.Set("author", zone.Author)
111112
_ = d.Set("last_modified_by", zone.LastModifiedBy)
112-
_ = d.Set("last_updated", zone.LastUpdated)
113+
_ = d.Set("last_updated", time.UnixMilli(zone.LastUpdated).Format(time.RFC3339))
113114

114115
return nil
115116
}

0 commit comments

Comments
 (0)