Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(agent-vault): zero-pad day and hour in session timestamps (#8639)

claude[bot]bd18bfdc3740
diff --git a/frontend/src/pages/agent-vault/AgentVaultSessionsPage/AgentVaultSessionsPage.tsx b/frontend/src/pages/agent-vault/AgentVaultSessionsPage/AgentVaultSessionsPage.tsx
index 8b34936d28..e86c29b533 100644
--- a/frontend/src/pages/agent-vault/AgentVaultSessionsPage/AgentVaultSessionsPage.tsx
+++ b/frontend/src/pages/agent-vault/AgentVaultSessionsPage/AgentVaultSessionsPage.tsx
@@ -440,7 +440,7 @@ export const AgentVaultSessionsPage = () => {
</div>
</TableCell>
<TableCell className="whitespace-nowrap">
- {format(new Date(session.createdAt), "MMM d, yyyy h:mm a")}
+ {format(new Date(session.createdAt), "MMM dd, yyyy hh:mm a")}
</TableCell>
<TableCell>
<SessionExpiry expiresAt={session.expiresAt} />
diff --git a/frontend/src/pages/agent-vault/AgentVaultSessionsPage/components/SessionLogRow.tsx b/frontend/src/pages/agent-vault/AgentVaultSessionsPage/components/SessionLogRow.tsx
index 6a6c55c31c..b7ba4a3213 100644
--- a/frontend/src/pages/agent-vault/AgentVaultSessionsPage/components/SessionLogRow.tsx
+++ b/frontend/src/pages/agent-vault/AgentVaultSessionsPage/components/SessionLogRow.tsx
@@ -142,11 +142,11 @@ export const SessionLogRow = ({ record, arrivedAt, accessBundleName, onAddServic
<Tooltip>
<TooltipTrigger asChild>
<span className="whitespace-nowrap tabular-nums">
- {format(new Date(record.ts), "MMM d, yyyy HH:mm:ss")}
+ {format(new Date(record.ts), "MMM dd, yyyy HH:mm:ss")}
</span>
</TooltipTrigger>
<TooltipContent>
- {format(new Date(record.ts), "MMM d, yyyy HH:mm:ss.SSS (zzz)")}
+ {format(new Date(record.ts), "MMM dd, yyyy HH:mm:ss.SSS (zzz)")}
</TooltipContent>
</Tooltip>
</TableCell>