diff options
Diffstat (limited to 'internal/tui')
| -rw-r--r-- | internal/tui/components/chat/message.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/tui/components/chat/message.go b/internal/tui/components/chat/message.go index 66a8c3541..e7a6f7237 100644 --- a/internal/tui/components/chat/message.go +++ b/internal/tui/components/chat/message.go @@ -100,7 +100,7 @@ func renderUserMessage(msg message.Message, isFocused bool, width int, position // Add timestamp info info := []string{} - timestamp := time.UnixMilli(msg.CreatedAt).Local().Format("02 Jan 2006 03:04 PM") + timestamp := msg.CreatedAt.Local().Format("02 Jan 2006 03:04 PM") username, _ := config.GetUsername() info = append(info, baseStyle. Width(width-1). @@ -148,7 +148,7 @@ func renderAssistantMessage( baseStyle := styles.BaseStyle() // Always add timestamp info - timestamp := time.UnixMilli(msg.CreatedAt).Local().Format("02 Jan 2006 03:04 PM") + timestamp := msg.CreatedAt.Local().Format("02 Jan 2006 03:04 PM") modelName := "Assistant" if msg.Model != "" { modelName = models.SupportedModels[msg.Model].Name |
