Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Commit 8254693

Browse files
fix(dashboard): Cast last_seen_at to Number for date display
Timestamps stored as strings were rendering as Invalid Date in the memories list. Explicit Number() cast fixes the display. Co-Authored-By: Claude <noreply@anthropic.com> AI-Generated: true
1 parent 80f5fb6 commit 8254693

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dashboard/app/memories/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default function memories() {
9898
content: m.content,
9999
primary_sector: m.primary_sector,
100100
tags: [],
101-
created_at: m.last_seen_at || Date.now(),
101+
created_at: Number(m.last_seen_at) || Date.now(),
102102
salience: m.salience,
103103
}))
104104
)
@@ -304,7 +304,7 @@ export default function memories() {
304304
Salience: {(mem.salience * 100).toFixed(0)}%
305305
</span>
306306
<span className="text-xs text-stone-500">
307-
{new Date(mem.created_at).toLocaleDateString()}
307+
{new Date(Number(mem.created_at)).toLocaleDateString()}
308308
</span>
309309
{mem.tags?.map(tag => (
310310
<span key={tag} className="bg-stone-800 rounded px-2 py-0.5 text-xs text-stone-400">

0 commit comments

Comments
 (0)