mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-03 06:50:26 +00:00
fix: timestamp formatting
This commit is contained in:
parent
d20d0c5a95
commit
425c0f1bab
3 changed files with 4 additions and 4 deletions
|
|
@ -100,7 +100,7 @@ func renderUserMessage(msg message.Message, isFocused bool, width int, position
|
|||
|
||||
// Add timestamp info
|
||||
info := []string{}
|
||||
timestamp := time.Unix(msg.CreatedAt, 0).Format("15:04:05")
|
||||
timestamp := time.UnixMilli(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.Unix(msg.CreatedAt, 0).Format("15:04:05")
|
||||
timestamp := time.UnixMilli(msg.CreatedAt).Local().Format("02 Jan 2006 03:04 PM")
|
||||
modelName := "Assistant"
|
||||
if msg.Model != "" {
|
||||
modelName = models.SupportedModels[msg.Model].Name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue