Skip to content

Commit 5c8649b

Browse files
cj-vanaclaude
andcommitted
Fix timezone display - convert UTC timestamps to local time
Database stores UTC without 'Z' suffix, causing JS to interpret as local. Now appends 'Z' to indicate UTC before converting to local time. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7d21d54 commit 5c8649b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/NetworkMap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export function NetworkMap({ nodes, className = '' }: NetworkMapProps) {
184184
{node.last_seen && (
185185
<div className="flex justify-between">
186186
<span>Last Seen:</span>
187-
<span>{new Date(node.last_seen).toLocaleString()}</span>
187+
<span>{new Date(node.last_seen.endsWith('Z') ? node.last_seen : node.last_seen + 'Z').toLocaleString()}</span>
188188
</div>
189189
)}
190190
</div>

0 commit comments

Comments
 (0)