Skip to content

Commit 7454575

Browse files
committed
Fix issue with date formatting
1 parent cc02901 commit 7454575

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/io/snyk/plugins/artifactory/scanner/ScannerModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private Optional<Instant> getCreatedDate(RepoPath repoPath) {
105105
try {
106106
ItemInfo itemInfo = repositories.getItemInfo(repoPath);
107107
if (itemInfo != null) {
108-
Date created = itemInfo.getCreated();
108+
Date created = new Date(itemInfo.getCreated());
109109
if (created != null) {
110110
return Optional.of(created.toInstant());
111111
}

0 commit comments

Comments
 (0)