Time and date incorrect.
# support
n
Hello, I have been watching and checking the documentation but it looks like the current date and time is not working properly. ### Current Date and Time Current date: {{ "now" | date: "%B %d, %Y", "America/New_York"}} Current time: {{ "now" | date: "%I:%M %p", "America/New_York"}} Day of week: {{ "now" | date: "%A", "America/New_York"}} This is what I have.
v
Thank you for sharing your template and the issue. Could you please provide an example of the incorrect date or time output you are seeing, or describe how it is not working as expected? This will help me assist you more effectively. Source: - [Vapi documentation: Dynamic Variables](https://docs.vapi.ai/assistants/dynamic-variables)
v
What do you have? @NewbieinAI
n
Current Date and Time Current date: {{ "now" | date: "%B %d, %Y", "America/New_York"}} Current time: {{ "now" | date: "%I:%M %p", "America/New_York"}} Day of week: {{ "now" | date: "%A", "America/New_York"}}
v
I don't get it, what's the problem. It's just interesting, cause I have the problem with time understanding too
Look: Here is the dialogue: Great. When would be a good time for you to speak with our specialist? How about Thursday at 11 o'clock? I apologize, but our company isn't available then. How about Thursday at 9 30? Wait a second. What's your working time? Our working hours are Monday to Friday from 9 AM to 3 PM UTC. But Thursday at 11 o'clock, what do you think? I apologize, but Thursday at 11 o'clock is outside our working hours. Would 9 30 AM work for you instead? But why? Why is it why is it outside of your working hours? I apologize for the confusion. Thursday at 11 o'clock is indeed within our working hours. Would you like to confirm that time for the follow-up call? But why did you say that no? That it's not inside of your working hours? I apologize for the misunderstanding. That was an error on my part. Thursday at 11 o'clock is within our working No. Thursday at 11 o'clock is within our working hours. No. No. Thursday at 11 o'clock is within our working hours. Plainly. You explain me why? I appreciate your patience. My initial response was incorrect due to a miscalculation regarding our working hours, I sincerely apologize for any confusion caused. Would you like to confirm Don't no. Would you like to confirm When Would you like to confirm Wait. Don't apologize. Just tell me explain to me why did you say that. Why did you say that this working hours is outside of like, just explain. I understand your frustration. I've mistakenly interpreted the time zone and working hours which led to my incorrect response. what is my time zone? Do what do you think? I have access to your specific time zone information. However, our working hours are in UTC. Would you like to proceed with confirming the appointment for Thursday at 11 o'clock?
n
I was able to fix the issue, it looks like I have multiple timezone variables there. I only added the one above. What is your Timezone?
v
For now I'm using UTC
But it's all the same man
That's what I have in prompt
Working Time Working Days: Monday, Tuesday, Wednesday, Thursday, Friday Start Time: 09:00 End Time: 15:00 Timezone: UTC Current Day of Week: {{"now" | date: "%A", "UTC"}} Current Date: {{ "now" | date: "%B %d, %Y", "UTC"}} Current Time (24h format): {{"now" | date: "%H:%M", "UTC"}}
And still she tells me that Thursday at 11:00 isn't available
Maybe it's me who doesn't understand something but I've been trying to repare this for 3 days and getting the same result
And even if try to make it with my timezone (Madrid/Europe) - it doesn't work
n
Office Hours: Monday to Friday from 9 am to 3 pm. Current Date and Time Current date: {{ "now" | date: "%B %d, %Y", "Europe/Madrid"}} Current time: {{ "now" | date: "%I:%M %p", "Europe/Madrid"}} Day of week: {{ "now" | date: "%A", "Europe/Madrid"}} I got it to work because I have a lot of prompts about time zone. Make sure you only have one. I tested it, and it work for me.
and it is Europe/Madrid
c
checking if this is resolved/solved for you?
2 Views