The system keeps choosing the wrong today's date a...
# support
c
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
v
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:
Copy code
liquid
{{"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](https://docs.vapi.ai/assistants/dynamic-variables#advanced-date-and-time-usage) Source: - [Vapi dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables#advanced-date-and-time-usage)
c
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?
v
Message marked as helpful by @Chur_mahh22! 🎉
v
Add the timezone formatting directly to your prompt when you want the assistant to say or display the correct date. For example:
Copy code
liquid
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](https://docs.vapi.ai/assistants/dynamic-variables#advanced-date-and-time-usage) Source: - [Vapi dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables#advanced-date-and-time-usage)
c
Hi Chur_mahh22, If you're facing issues with date selection by the system, it might be related to a configuration or timezone setting. Check the following: 1. Ensure your device's date and time settings are correct. 2. Verify timezone settings in any relevant Vapi configurations. 3. If you're using integrations, confirm those settings align with your expected timezone. If the problem persists after checking these, let me know additional details or any specific error messages you encounter.
5 Views