Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/ui/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
use std::collections::{HashSet, HashMap, VecDeque};
use std::io::Stdout;

use ratatui::{
use chrono::Local;
use ratatui:{
backend::CrosstermBackend,
buffer::Buffer,
layout::Rect,
Expand Down Expand Up @@ -239,10 +240,12 @@ impl ChatView {
),
};

// Convert UTC timestamp to local time for display
let local_time = turn.timestamp.with_timezone(&Local);
let header = Line::from(vec![
Span::styled(role_text, role_style),
Span::styled(
format!(" ({})", turn.timestamp.format("%H:%M:%S")),
format!(" ({})", local_time.format("%H:%M:%S")),
Style::default().fg(Color::DarkGray),
),
]);
Expand Down