https://retellai.com/?utm_source=discord&utm_medium=seo logo
Having issue with the date
# ❓・bug-report
d
I'm Australia based - the agent is referring to today's date as "tomorroW" i.e. saying "tomorrow march 6th" when today is in march 6th. when i asked the date directly in the LLM playground it came back with the following: Any idea what i can do here?
r
use {{current_time}} and tell it to convert that to your time zone
s
Set your agent's time zone to Australia/Sydney (or your local zone) in the agent settings or use a tool/API that returns the local date. This will align “today” and “tomorrow” correctly
s
@AI Evy how do I set the agents local day and time
a
Thanks for tagging me @steve_61645. I'll look through relevant sources and get back to you shortly.
### Answer --- You can use the timezone-aware dynamic variable to set your agent's local time. [(1) ]() Use this format in your prompt or begin message:
Copy code
{{current_time_Australia/Sydney}}
[(2) ]() Replace
Australia/Sydney
with your specific timezone. Alternative approach: Send a custom variable with the local time/date via the inbound webhook (for inbound calls) or in the API call (for outbound calls) . [(3) ]() For example, you can pass dynamic variables when creating a call: [(1) ]()
Copy code
json
{
  "local_time": "2025-03-06 10:30 AM AEDT"
}
Then reference it in your prompt as
{{local_time}}
. ---
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] How can I set the current time in the agent](https://discord.com/channels/1186424376300679209/1370089305606848653) [[3] Discord message from @zz4chy on 2025-03-08](https://discord.com/channels/1186424376300679209/1294891368505937952/1347968047993848002) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.