Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

tools: Make time-zones more case-insensitive (#55288)

Oleksiy Syvokonc499a95218fa
diff --git a/crates/agent/src/tools/now_tool.rs b/crates/agent/src/tools/now_tool.rs
index 04aba44ff3a..9721c923b6e 100644
--- a/crates/agent/src/tools/now_tool.rs
+++ b/crates/agent/src/tools/now_tool.rs
@@ -13,8 +13,10 @@ use crate::{AgentTool, ToolCallEventStream, ToolInput};
#[schemars(inline)]
pub enum Timezone {
/// Use UTC for the datetime.
+ #[serde(alias = "UTC", alias = "Utc")]
Utc,
/// Use local time for the datetime.
+ #[serde(alias = "LOCAL", alias = "Local")]
Local,
}