Skip to content

Commit 7dead16

Browse files
authored
Fixes Image timestamp calculation (#5988)
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
1 parent d792aae commit 7dead16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/testcontainers/images/ImageData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ static ImageData from(InspectImageResponse inspectImageResponse) {
2424
}
2525

2626
static ImageData from(Image image) {
27-
return ImageData.builder().createdAt(Instant.ofEpochMilli(image.getCreated())).build();
27+
return ImageData.builder().createdAt(Instant.ofEpochSecond(image.getCreated())).build();
2828
}
2929
}

0 commit comments

Comments
 (0)