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

Bug: scheduler.getAvailability returning incorrect values #14

Open
chintan12 opened this issue Mar 16, 2020 · 0 comments
Open

Bug: scheduler.getAvailability returning incorrect values #14

chintan12 opened this issue Mar 16, 2020 · 0 comments

Comments

@chintan12
Copy link

Input value :

{ "from": "2020-03-16", "to": "2020-03-23", "duration": 45, "interval": 45, "schedule": { "friday": { "from": "09:00", "to": "11:00", "unavailability": [] }, "sunday": { "from": "09:00", "to": "14:00", "unavailability": [ { "from": "10:00", "to": "11:00" }, { "from": "12:00", "to": "13:00" } ] } } }

Output :

{ '2020-03-20': [ { time: '09:00', available: true, reference: null }, { time: '09:45', available: true, reference: null }, { time: '10:30', available: false, reference: null } ], '2020-03-22': [ { time: '09:00', available: true, reference: null }, { time: '09:45', available: false, reference: null }, { time: '10:30', available: false, reference: null }, { time: '11:15', available: true, reference: null }, { time: '12:00', available: false, reference: null }, { time: '12:45', available: false, reference: null }, { time: '13:30', available: false, reference: null } ] }

For sunday time slot is display incorrect

There has been close office between 10 to 11, So next opening stating from 11 instead of 11:15

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

1 participant