Skip to content
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 for available slot: undefined #78

Open
helveden opened this issue Apr 30, 2024 · 1 comment
Open

Invalid Date for available slot: undefined #78

helveden opened this issue Apr 30, 2024 · 1 comment

Comments

@helveden
Copy link

helveden commented Apr 30, 2024

Hello i love your package, but i have one error : Invalid Date for available slot: undefined

When I have a timeslot between 2 others it bugs.

I create this RDV in Google Calendar and i have this bug :
image

Before i have this i select 10h30 :
image

New array timeslot
image

I use this function :
timeSlotDifference(availableTimeslots, firstArrEvents)

error : my array of timeslot is ok with stratTime, endTime
image

I don't understand this bug because, i have Date()

Ty

@TylerAHolden
Copy link
Owner

Everything appears to be working correctly and your screenshots look like the arrays are properly formatted. Hmm. Do you have a JSON object of the available and unavailable timeslots or a working code example that I can try to replicate the bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants