We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 512f0fa commit e40a74cCopy full SHA for e40a74c
1 file changed
src/ui/chat.rs
@@ -17,7 +17,8 @@
17
use std::collections::{HashSet, HashMap, VecDeque};
18
use std::io::Stdout;
19
20
-use ratatui::{
+use chrono::Local;
21
+use ratatui:{
22
backend::CrosstermBackend,
23
buffer::Buffer,
24
layout::Rect,
@@ -239,10 +240,12 @@ impl ChatView {
239
240
),
241
};
242
243
+ // Convert UTC timestamp to local time for display
244
+ let local_time = turn.timestamp.with_timezone(&Local);
245
let header = Line::from(vec![
246
Span::styled(role_text, role_style),
247
Span::styled(
- format!(" ({})", turn.timestamp.format("%H:%M:%S")),
248
+ format!(" ({})", local_time.format("%H:%M:%S")),
249
Style::default().fg(Color::DarkGray),
250
251
]);
0 commit comments