fix: timestamp formatting

This commit is contained in:
adamdottv
2025-05-12 11:33:52 -05:00
parent d20d0c5a95
commit 425c0f1bab
3 changed files with 4 additions and 4 deletions

View File

@@ -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,

View File

@@ -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{