diff options
| author | adamdottv <[email protected]> | 2025-05-13 11:07:34 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-05-13 11:07:34 -0500 |
| commit | 674797bd48839771750ead0a160912a9bab02943 (patch) | |
| tree | bb407b6fb11b0e0de953cd610af5b436c8aa7082 /internal/tui/components | |
| parent | 1f9610e266c2c630cd39d3c5d5e62328e2eac95b (diff) | |
| download | opencode-674797bd48839771750ead0a160912a9bab02943.tar.gz opencode-674797bd48839771750ead0a160912a9bab02943.zip | |
chore: refactoring
Diffstat (limited to 'internal/tui/components')
| -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 |
