fix(servicecatalog): use injected clock for plan execution record (#7122)

This commit is contained in:
Jimmy Liu Jia authored and GitHub committed 2026-10-31 15:27:05 -04:00
1 parent d173d65eb4
commit 87a733edea
2 files changed
+20 -4

No files matched your search

@@ -1152,7 +1152,7 @@ public class ServiceCatalogService implements PassedRoleLookup {
ObjectNode record = objectMapper.createObjectNode();
record.put("RecordId", "rec-" + UUID.randomUUID().toString().replace("-", "").substring(0, 16));
record.put("Status", "SUCCEEDED");
record.put("CreatedTime", System.currentTimeMillis() / 1000.0);
record.put("CreatedTime", Instant.now(clock).toEpochMilli() / 1000.0);
return record;
}