fix: timestamp formatting
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user