mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-16 15:10:12 +01:00
Use RFC3339Nano to better align to Docker standard
This commit is contained in:
parent
3c0441b94c
commit
eee431ff25
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue