Wrong time even when using default variable.
# support
a
Using: {{"now" | date: "%b %d, %Y, %I:%M %p", "America/New_York"}} at ~9 AM, but getting a response that it's mid-afternoon. Re-asked for specific time, responded back with ~12PM. Have explicit instructions: The current day and time is {{now}}.
v
It looks like your syntax is correct, but to ensure timezone conversion works as expected, double-check that the timezone string is exactly
"America/New_York"
and that there are no extra spaces or typos. Try this code snippet in your prompt:
Copy code
The current day and time is {{"now" | date: "%b %d, %Y, %I:%M %p", "America/New_York"}}
If the issue persists, it may be a backend or caching problem—try refreshing your assistant or redeploying the prompt to force an update. Reference: [Vapi dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables) Source: - [Vapi dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables)
3 Views