conscious-sapphire
conscious-sapphire2h ago

The system keeps choosing the wrong today's date and I don't know why.

The system keeps choosing the wrong date and I don't know why. Today's date is currently September 5th but it's saying it's October 3rd which is wrong. Please fix it
4 Replies
Vapi Support Bot
To ensure the system uses the correct date, explicitly set the time zone in your dynamic variable. For example, if you want the date in Los Angeles time, use:
{{"now" | date: "%Y-%m-%d", "America/Los_Angeles"}}
{{"now" | date: "%Y-%m-%d", "America/Los_Angeles"}}
Replace "America/Los_Angeles" with your desired time zone. This should fix the date mismatch issue in your assistant's responses.
Reference: Vapi dynamic variables documentation Source: - Vapi dynamic variables documentation
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
conscious-sapphire
conscious-sapphireOP2h ago
Do I add it to my prompt or my check availability tool? @Vapi Support Bot Do I add it to my prompt or my check availability tool?
Duckie
Duckie2h ago
Message marked as helpful by @Chur_mahh22! 🎉
Vapi Support Bot
Add the timezone formatting directly to your prompt when you want the assistant to say or display the correct date. For example:
Today is {{"now" | date: "%A, %B %d", "America/Los_Angeles"}}
Today is {{"now" | date: "%A, %B %d", "America/Los_Angeles"}}
If you're configuring the check availability tool, set the timezone in the tool's settings, not in the prompt.
Reference: Vapi dynamic variables documentation Source: - Vapi dynamic variables documentation

Did you find this page helpful?