Fix credential age calculation

This commit is contained in:
Ravi Khadiwala authored and Chris Eager committed 2026-01-30 10:13:21 -06:00
1 parent 61ab765391
commit 159e1f13f0
1 file changed
+1 -1
@@ -142,7 +142,7 @@ public class SecureValueRecovery2Controller {
.baseUnit("days")
.tags(Tags.of(UserAgentTagUtil.getPlatformTag(userAgent), Tag.of("valid", Boolean.toString(info.valid()))))
.register(Metrics.globalRegistry)
.record(Duration.between(Instant.ofEpochMilli(info.timestamp()), Instant.now()).toDays()));
.record(Duration.between(Instant.ofEpochSecond(info.timestamp()), Instant.now()).toDays()));
return new AuthCheckResponseV2(credentials.stream().collect(Collectors.toMap(
ExternalServiceCredentialsSelector.CredentialInfo::token,