Skip to content

Commit

Permalink
Merge pull request quarkusio#45123 from amusarra/fix/ext-info-git-tim…
Browse files Browse the repository at this point in the history
…e-commit

Extension info - Fixed the assign value to the latestCommitTime
  • Loading branch information
geoand authored Dec 16, 2024
2 parents 81c3cf1 + 796c92a commit 0997246
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void gitInfo(InfoBuildTimeConfig config,
Map<String, Object> commit = new LinkedHashMap<>();
String latestCommitId = latestCommit.getName();
commit.put("id", latestCommitId);
String latestCommitTime = formatDate(Instant.ofEpochMilli(latestCommit.getCommitTime()), ZoneId.systemDefault());
String latestCommitTime = formatDate(Instant.ofEpochSecond(latestCommit.getCommitTime()), ZoneId.systemDefault());
commit.put("time", latestCommitTime);

if (addFullInfo) {
Expand Down

0 comments on commit 0997246

Please sign in to comment.