From ae86ef519c5dc557914c29bd1786b1c87d8dcb95 Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Tue, 13 May 2025 10:27:09 -0500 Subject: chore: refactoring --- internal/tui/components/logs/details.go | 2 +- internal/tui/components/logs/table.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'internal/tui') diff --git a/internal/tui/components/logs/details.go b/internal/tui/components/logs/details.go index 5ad59b47a..631bb97b3 100644 --- a/internal/tui/components/logs/details.go +++ b/internal/tui/components/logs/details.go @@ -66,7 +66,7 @@ func (i *detailCmp) updateContent() { levelStyle := getLevelStyle(i.currentLog.Level) // Format timestamp - timeStr := time.UnixMilli(i.currentLog.Timestamp).Format(time.RFC3339) + timeStr := i.currentLog.Timestamp.Format(time.RFC3339) header := lipgloss.JoinHorizontal( lipgloss.Center, diff --git a/internal/tui/components/logs/table.go b/internal/tui/components/logs/table.go index 0c0070f42..dbfc9c9f9 100644 --- a/internal/tui/components/logs/table.go +++ b/internal/tui/components/logs/table.go @@ -2,7 +2,6 @@ package logs import ( "context" - "time" "github.com/charmbracelet/bubbles/key" "github.com/charmbracelet/bubbles/table" @@ -161,7 +160,7 @@ func (i *tableCmp) updateRows() { for _, log := range i.logs { // Format timestamp as time - timeStr := time.UnixMilli(log.Timestamp).Format("15:04:05") + timeStr := log.Timestamp.Format("15:04:05") // Include ID as hidden first column for selection row := table.Row{ -- cgit v1.2.3