Skip to content

Commit

Permalink
oci: Set created annotation time to UTC
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Feb 13, 2023
1 parent 13010c9 commit e1d86c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oci/client/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (c *Client) Push(ctx context.Context, url, sourceDir string, meta Metadata,
return "", err
}

ct := time.Now()
ct := time.Now().UTC()
meta.Created = ct.Format(time.RFC3339)

img := mutate.MediaType(empty.Image, types.OCIManifestSchema1)
Expand Down

0 comments on commit e1d86c3

Please sign in to comment.