DATES CHANGES AS IT WISHS
# support
m
why this always happens, when the caller mentions I want to book and a appointment it checks correct and books correct everything goes well but most of the time when the caller refers to tomorrow it also goes correct but when the caller mention Monday or Tuesday or what ever it sends the format correct and the time correct but the date sometimes refers to another date which is the next date, as in the screen sht when i said tuseday it check for the date of Wednesday which is 19th and when I said tomorrow it checked correct for the 20th, so my issue is in when i say a specific day, https://cdn.discordapp.com/attachments/1439128528187559956/1439128528384823379/WhatsApp_Image_2025-11-15_at_09.34.34_02300dea.jpg?ex=694242e2&is=6940f162&hm=56f45a332a3fa594b61b886262d317d61921289355b283630a594144e74514e2&
v
It sounds like the system may not be resolving day names (like "Tuesday") to the correct date. To ensure accurate date handling, use explicit date formatting with LiquidJS in your prompts or API calls. For example:
Copy code
liquid
{{ "now" | date: "%A, %B %d, %Y", "America/Los_Angeles" }}
Tip: Always convert day names to absolute dates before booking to avoid mismatches. See the [dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables) for more details. Source: - [Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables)
m
# CURRENT TIME - {{"now" | date: "%Y-%m-%dT%H:%M:%S+04:00"}} # TIMEZONE RULE - Always interpret all dates, times, and expressions like “Tuesday at 10am”, “tomorrow at 3”, or “next week” using the timezone: UTC+04:00 (Asia/Dubai). Never interpret or convert using UTC or Zulu time. All date-time reasoning MUST happen in UTC+04:00. When generating ISO timestamps, ALWAYS append the +04:00 offset. Example: 2025-11-18T10:00:00+04:00. this is the time zone prompt included in the asistant
i need this solved ergent please
@User
@Vapi Support Bot
v
To ensure day names like "Tuesday" are always resolved in the correct timezone (Asia/Dubai), use the LiquidJS date filter with your timezone explicitly in every prompt or API call. For example:
Copy code
liquid
{{ "now" | date: "%A, %B %d, %Y, %I:%M %p", "Asia/Dubai" }}
Always confirm the resolved date with the user before booking to avoid mismatches. See the [dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables) for more details. Source: - [Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables)
m
thanks, i changes the varibales by mistake without making sure the ryt format
v
Message marked as helpful by @mohammed! 🎉
Message marked as helpful by @mohammed! 🎉
Message marked as helpful by @mohammed! 🎉
c
Glad you were able to get this resolved. If anything else comes up or you need further assistance, we’re here to help.
2 Views