From a3f04e8b36e3675727e7b25e12aae26249ef1523 Mon Sep 17 00:00:00 2001 From: Abul Hossain Khan <140191921+abulgit@users.noreply.github.com> Date: Mon, 10 Nov 2025 22:04:59 +0530 Subject: [PATCH] agent_ui: Fix thread history item showing GMT time instead of local time on Windows (#42198) Closes #42178 Now it's consistent with the DateAndTime path which already does timezone conversion. - **Future Work** Happy to tackle the TODO in `time_format.rs` about implementing native Windows APIs for proper localized formatting (similar to macOS's `CFDateFormatter`) as a follow-up. Release Notes: - agent: Fixed the thread history item timestamp, which was being shown in GMT instead of in the user's local timezone on Windows. --- crates/agent_ui/src/acp/thread_history.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/agent_ui/src/acp/thread_history.rs b/crates/agent_ui/src/acp/thread_history.rs index 9cfe30278e1e46d95c00b3c881358a4b00786801..f8a2006f8fc9d2ece6d4a5526482dec5df948686 100644 --- a/crates/agent_ui/src/acp/thread_history.rs +++ b/crates/agent_ui/src/acp/thread_history.rs @@ -673,7 +673,7 @@ impl EntryTimeFormat { timezone, time_format::TimestampFormat::EnhancedAbsolute, ), - EntryTimeFormat::TimeOnly => time_format::format_time(timestamp), + EntryTimeFormat::TimeOnly => time_format::format_time(timestamp.to_offset(timezone)), } } }