Skip to content

Commit

Permalink
Fixes Image timestamp calculation (#5988)
Browse files Browse the repository at this point in the history
According to the docs `Created`  is `integerDate and time at which the image was created as a Unix timestamp (number of seconds sinds EPOCH)`

Fixes #4275
  • Loading branch information
leblonk committed Nov 1, 2022
1 parent d792aae commit 7dead16
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -24,6 +24,6 @@ static ImageData from(InspectImageResponse inspectImageResponse) {
}

static ImageData from(Image image) {
return ImageData.builder().createdAt(Instant.ofEpochMilli(image.getCreated())).build();
return ImageData.builder().createdAt(Instant.ofEpochSecond(image.getCreated())).build();
}
}

0 comments on commit 7dead16

Please sign in to comment.