diff options
| author | adamdottv <[email protected]> | 2025-05-13 10:27:09 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-05-13 10:27:09 -0500 |
| commit | ae86ef519c5dc557914c29bd1786b1c87d8dcb95 (patch) | |
| tree | e1b5f7bbeb74739c74055d205ad62181230f0b12 /internal/tui/components | |
| parent | 2391e338b4e41726e7233e2bf027a62476140130 (diff) | |
| download | opencode-ae86ef519c5dc557914c29bd1786b1c87d8dcb95.tar.gz opencode-ae86ef519c5dc557914c29bd1786b1c87d8dcb95.zip | |
chore: refactoring
Diffstat (limited to 'internal/tui/components')
| -rw-r--r-- | internal/tui/components/logs/details.go | 2 | ||||
| -rw-r--r-- | internal/tui/components/logs/table.go | 3 |
2 files changed, 2 insertions, 3 deletions
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{ |
