diff options
| author | adamdottv <[email protected]> | 2025-05-12 11:33:52 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-05-12 11:33:52 -0500 |
| commit | 425c0f1bab79bbf1e51e58ba09b987e8c9160991 (patch) | |
| tree | 72b364be798261dcedd4ed2d6c681802e274ae59 /internal/tui/components/logs | |
| parent | d20d0c5a95e19250a7d83b4eb30f9d7b460104da (diff) | |
| download | opencode-425c0f1bab79bbf1e51e58ba09b987e8c9160991.tar.gz opencode-425c0f1bab79bbf1e51e58ba09b987e8c9160991.zip | |
fix: timestamp formatting
Diffstat (limited to 'internal/tui/components/logs')
| -rw-r--r-- | internal/tui/components/logs/details.go | 2 | ||||
| -rw-r--r-- | internal/tui/components/logs/table.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/tui/components/logs/details.go b/internal/tui/components/logs/details.go index 3b712fe15..ff5459382 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.Unix(i.currentLog.Timestamp, 0).Format(time.RFC3339) + timeStr := time.UnixMilli(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 4a9eb06a4..1bec9c787 100644 --- a/internal/tui/components/logs/table.go +++ b/internal/tui/components/logs/table.go @@ -165,7 +165,7 @@ func (i *tableCmp) updateRows() { for _, log := range i.logs { // Format timestamp as time - timeStr := time.Unix(log.Timestamp, 0).Format("15:04:05") + timeStr := time.UnixMilli(log.Timestamp).Format("15:04:05") // Include ID as hidden first column for selection row := table.Row{ |
