-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid date #9
Comments
I experienced the same issue (albeit with the code version from this tutorial) and traced it down to the time zone offset. I'm in European time zone (GMT+1) and configured my agent, fulfillment and calendar to be in this time zone, rather than in the LA time zone in the code.
|
Congratz Dennis for spotting the problem, how do we solve it? |
yes, how do we solve it? |
What do we need to modify in our code to allow for support of other timezones? |
in this code :
which is i don't have any event for that date in my google calendar |
Hey guys, could anyone solve the problem above? |
Setting proper timezone and timeZoneOffset i.e |
Hi Dennis, I am in New Zealand time . |
Hi all! I fixed the problem by changing the code to: I found that the agent.parameters.time always return the time in this format: '15:32:00', so there is no need to split the time with '-' or 'T', we can just combine the time with the date and timeZone offset as long as you have correct offset. Hopefully It helps! |
@Zhipeng-Chang still the same error it says "Invalid date" |
@Smarto-Dev what is the error message in your firebase console? |
getting the issue of " sorry we're booked " every time. but no issue with date n time |
So here is the soln:
As we can see, the timezone followed is 'America/Los_Angeles', But as I live in India, changed code snippet will be:
Hence find your respective timezones and do the mentioned changes. |
See below the code that worked for me. Take as example Spain:
Make sure you have the time timeZoneOffset with the following format '+/-nn:nn'. I was missing the leading zero ('+02:00') in my example. |
Thanks man, worked for me. |
Hi there,
thanks for creating this template.
After i have followed all the steps, i tried the bot and after i fill up the date and time, it says " I'm sorry, there are no slots available for Invalid Date. "
Possible to assist? Thanks in advance!
Kenny
The text was updated successfully, but these errors were encountered: