https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can I make the voice agent understand the curr...
# ❓・ai-evy-support
d
@AI Evy how can I make the voice agent understand the current time of a specific location
a
Thanks for tagging me @dzei. I'll look through relevant sources and get back to you shortly.
### Answer You can use Retell AI's dynamic variables to provide the current time for a specific location to your voice agent. [(1) ]() Retell AI provides system default dynamic variables for time, including
{{current_time_[timezone]}}
where you replace
[timezone]
with the specific timezone you need. For example, if you want the current time in New York, you would use
{{current_time_America/New_York}}
. [(1) ]() [(2) ](

▾

) If you want the time in Sydney, you would use
{{current_time_Australia/Sydney}}
. [(1) ]() You can add these dynamic variables directly in your agent's prompt or context section. [(1) ]() [(2) ](

▾

) For instance, in your agent's context, you might include: "The current date and time is {{current_time_America/New_York}}" [(2) ](

▾

) This will automatically populate with the current time in that timezone when the agent runs. [(1) ]() [(2) ](

▾

) The default
{{current_time}}
variable uses America/Los_Angeles timezone if no specific timezone is specified.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Part 1: BuildYour First Retell Voice Al Agent That Sells Cars](

https://www.youtube.com/watch?v=p0DusrDjfjA▾

) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy the voice agent is not giving me the current time for the location I have set up. {{current_time_America/Texas}} is giving me the worng time
a
Thanks for the follow-up, @dzei. I'll get back to you soon.
### Answer The issue is with the timezone format you're using.
America/Texas
is not a valid timezone identifier.
[(1) ]() For Texas locations, you need to use one of these valid timezone identifiers: -
America/Chicago
- for most of Texas (Central Time) -
America/Denver
- for El Paso and far west Texas (Mountain Time) Update your dynamic variable to:
Copy code
{{current_time_America/Chicago}}
This should give you the correct current time for most Texas locations. Note: There have been some reported instances where the
{{current_time}}
variable occasionally returns incorrect dates, [(2) ]() but using the correct timezone format should resolve your specific issue.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] im using the {{current_time}} variable, but the agent says is march 14th instead of march 5th](https://discord.com/channels/1186424376300679209/1346957336966725683) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.