# Agent does not know year even when variable is set

**URL:** <https://community.retellai.com/t/agent-does-not-know-year-even-when-variable-is-set/3167>\
**Category:** Support Help\
**Tags:** bug\
**Created:** [June 23, 2026, 3:55pm UTC](https://community.retellai.com/t/agent-does-not-know-year-even-when-variable-is-set/3167 "2026-06-23T15:55:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![skhandor](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.retellai.com/skhandor/32/1081_2.png) [@skhandor](https://community.retellai.com/u/skhandor)\
**Post date:** [June 23, 2026, 3:55pm UTC](https://community.retellai.com/t/agent-does-not-know-year-even-when-variable-is-set/3167/1 "2026-06-23T15:55:42Z")

</div>

We have this in the global prompt and the agent is not knowing what the current date is. See below

The current date and time is {{current\_time\_{{agent\_timezone}}}}

 ![image](https://canada1.discourse-cdn.com/flex008/uploads/retell1/original/2X/7/71982fe46bb5797bbd400a0406a1a6fd421d0d2f.png)

---

<div class="post-metadata">

**Author:** ![Shah-Fazal](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.retellai.com/shah-fazal/32/2522_2.png) [@Shah-Fazal](https://community.retellai.com/u/Shah-Fazal)\
**Post date:** [June 23, 2026, 3:56pm UTC](https://community.retellai.com/t/agent-does-not-know-year-even-when-variable-is-set/3167/2 "2026-06-23T15:56:40Z")

</div>

Hey @skhandor can you share your agent id

---

<div class="post-metadata">

**Author:** ![skhandor](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.retellai.com/skhandor/32/1081_2.png) [@skhandor](https://community.retellai.com/u/skhandor)\
**Post date:** [June 23, 2026, 3:57pm UTC](https://community.retellai.com/t/agent-does-not-know-year-even-when-variable-is-set/3167/3 "2026-06-23T15:57:23Z")

</div>

> [@skhandor](#):
>
> {{current\_time\_{{agent\_timezone}}}}

agent\_7f5c281b6ec8437d372525f4a7

---

<div class="post-metadata">

**Author:** ![Shah-Fazal](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.retellai.com/shah-fazal/32/2522_2.png) [@Shah-Fazal](https://community.retellai.com/u/Shah-Fazal)\
**Post date:** [June 23, 2026, 3:57pm UTC](https://community.retellai.com/t/agent-does-not-know-year-even-when-variable-is-set/3167/4 "2026-06-23T15:57:50Z")

</div>

@skhandor checking with the team.

---

<div class="post-metadata">

**Author:** ![skhandor](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.retellai.com/skhandor/32/1081_2.png) [@skhandor](https://community.retellai.com/u/skhandor)\
**Post date:** [June 23, 2026, 3:58pm UTC](https://community.retellai.com/t/agent-does-not-know-year-even-when-variable-is-set/3167/5 "2026-06-23T15:58:38Z")

</div>

Thanks, this is what we have for the timezone

 ![image](https://canada1.discourse-cdn.com/flex008/uploads/retell1/original/2X/4/4c2c6173377e1f491fa8931c4f6db4842b6aa5f9.png)

---

<div class="post-metadata">

**Author:** ![Omar\_Ashraf](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.retellai.com/omar_ashraf/32/102_2.png) [@Omar\_Ashraf](https://community.retellai.com/u/Omar_Ashraf)\
**Post date:** [June 23, 2026, 4:42pm UTC](https://community.retellai.com/t/agent-does-not-know-year-even-when-variable-is-set/3167/6 "2026-06-23T16:42:21Z")

</div>

Hello @skhandor

The first screenshot is from the testing playground inside the agent. You didn’t send any variables to the call.

But it should work fine in normal calls when you send the variable. I just tested your agent by adding a default value to the agent\_timezone, and it worked fine

 ![image](https://canada1.discourse-cdn.com/flex008/uploads/retell1/original/2X/0/0e098291e33fa99327cdd4bfec05d3fb3fc2bea1.png)

 ![image](https://canada1.discourse-cdn.com/flex008/uploads/retell1/original/2X/5/59b5a2655c55d41d4c7b4aaadb230ac2a7fe630e.png)

---

<div class="post-metadata">

**Author:** ![skhandor](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.retellai.com/skhandor/32/1081_2.png) [@skhandor](https://community.retellai.com/u/skhandor)\
**Post date:** [June 23, 2026, 4:55pm UTC](https://community.retellai.com/t/agent-does-not-know-year-even-when-variable-is-set/3167/7 "2026-06-23T16:55:47Z")

</div>

Please see this call from production today. It thought June 25th was Tuesday:

call id: call\_d5f1efd0e80e673c3c0f2c9c61a

 ![image](https://canada1.discourse-cdn.com/flex008/uploads/retell1/original/2X/4/460785701c06dbb3fd2ec7fb99a4c69a5184c577.png)

---

<div class="post-metadata">

**Author:** ![Shah-Fazal](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.retellai.com/shah-fazal/32/2522_2.png) [@Shah-Fazal](https://community.retellai.com/u/Shah-Fazal)\
**Post date:** [June 23, 2026, 6:39pm UTC](https://community.retellai.com/t/agent-does-not-know-year-even-when-variable-is-set/3167/8 "2026-06-23T18:39:13Z")

</div>

Hey @skhandor The caller said the appointment was on Thursday, June 25. The agent restated it as _“Tuesday, June twenty-fifth.”_ June 25, 2026, is indeed a Thursday — the model dropped the caller’s weekday and reused “Tuesday” from today’s anchor. This is a known limitation: frontier LLMs don’t reliably compute the day of the week from a date string for any day other than the one already rendered for them.

Recommended fix: add a guardrail to the prompt such as:

> _"Never state a weekday for any date other than today’s date as given in_ `{{current_time_{{agent_timezone}}}}`_. When repeating a date the caller provided, restate the month and day only — do not name the weekday unless the caller named it."_

---

<div class="post-metadata">

**Author:** ![TONNIC](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.retellai.com/tonnic/32/131_2.png) [@TONNIC](https://community.retellai.com/u/TONNIC)\
**Post date:** [June 25, 2026, 2:02am UTC](https://community.retellai.com/t/agent-does-not-know-year-even-when-variable-is-set/3167/9 "2026-06-25T02:02:52Z")

</div>

**{{current\_time\_[timezone]}} should look like {{current\_time\_Australia/Sydney}} not** {{current\_time\_{{agent\_timezone}}}}
