Use RFC3339Nano to better align to Docker standard

This commit is contained in:
Peter Wilhelm 2024-01-07 18:15:35 -06:00
parent 3c0441b94c
commit eee431ff25

View file

@ -82,7 +82,7 @@ func CreateMockContainerWithDigest(id string, name string, image string, created
// CreateMockContainerWithDigest should only be used for testing // CreateMockContainerWithDigest should only be used for testing
func CreateMockContainerWithImageCreatedTime(id string, name string, image string, created time.Time, imageCreated time.Time) wt.Container { func CreateMockContainerWithImageCreatedTime(id string, name string, image string, created time.Time, imageCreated time.Time) wt.Container {
c := CreateMockContainer(id, name, image, created) c := CreateMockContainer(id, name, image, created)
c.ImageInfo().Created = imageCreated.UTC().Format(time.RFC3339) c.ImageInfo().Created = imageCreated.UTC().Format(time.RFC3339Nano)
return c return c
} }