https://retellai.com/?utm_source=discord&utm_medium=seo logo
the agent is giving me the wrong time how to fix
# ❓・ai-evy-support
c
@AI Evy the agent is giving me the wrong time how to fix
a
Thanks for tagging me @cptnnuke. I'll look through relevant sources and get back to you shortly.
### Answer Based on the sources, there are several ways to fix time/date issues with your Retell AI agent: ## Use Proper Dynamic Variables Use
{{current_time_[timezone]}}
instead of other date variables [(1) ]() . For example, if you need European time, use
{{current_time_Europe/Madrid}}
in your system prompt . ## Set Timezone in Calendar Tools Set the optional timezone field in calendar tools (like Book or Check Availability) to ensure the AI uses the correct timezone for date calculations [(2) ]() . Make sure your date-related instructions are clear and sequential . ## Pass Custom Date Variables If you're using external systems like Make.com, pass the correct date as a dynamic variable (e.g.,
appointment_date
) and use that in your prompt instead of
{{current_time}}
[(3) ]() . This ensures the agent uses the exact date from your external system rather than relying on built-in variables. ## Specify Timezone in Prompts Make sure you specify in the system prompt to stay consistent with timezones [(4) ]() . There might be trouble if the caller is calling from a different timezone, so consider getting their location somehow . ## Use Exact Dates When Possible Agents work better with exact dates like "March 6, 2025" rather than relative dates like "tomorrow" or "next week" [(5) ]() . The key is ensuring your agent has access to accurate timezone information and using the correct dynamic variables for your specific use case.
​ To learn more, see the sources I considered: [[1] Discord message from @toni3601648 on 2025-07-22](https://discord.com/channels/1186424376300679209/1186462578310910112/1397253397073236088) [[2] The AI is using the wrong date for booking the appointment, how can I fix this issue?](https://discord.com/channels/1186424376300679209/1370047731233722378) [[3] Date Time issue](https://discord.com/channels/1186424376300679209/1365666912557858828) [[4] Discord message from @arturoduarte on 2025-03-26](https://discord.com/channels/1186424376300679209/1186462578310910112/1354507174063112272) [[5] Discord message from @melvinglenford on 2025-03-06](https://discord.com/channels/1186424376300679209/1186462578310910112/1347206753783250995) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.