From 2040b9cee18e99a4ab7660e012fdec6cd814354a Mon Sep 17 00:00:00 2001 From: Haiping Chen Date: Mon, 27 Jan 2025 15:05:08 -0600 Subject: [PATCH] current_utc_datetime --- src/Infrastructure/BotSharp.Abstraction/Agents/AgentHookBase.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Infrastructure/BotSharp.Abstraction/Agents/AgentHookBase.cs b/src/Infrastructure/BotSharp.Abstraction/Agents/AgentHookBase.cs index a3746ca8..bec14b85 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Agents/AgentHookBase.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Agents/AgentHookBase.cs @@ -34,6 +34,8 @@ public abstract class AgentHookBase : IAgentHook dict["current_date"] = $"{DateTime.Now:MMM dd, yyyy}"; dict["current_time"] = $"{DateTime.Now:hh:mm tt}"; dict["current_weekday"] = $"{DateTime.Now:dddd}"; + dict["current_utc_datetime"] = $"{DateTime.UtcNow}"; + return true; }