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

Booked date bug #29

Closed
kristijanbarabas opened this issue Dec 11, 2022 · 4 comments
Closed

Booked date bug #29

kristijanbarabas opened this issue Dec 11, 2022 · 4 comments

Comments

@kristijanbarabas
Copy link

kristijanbarabas commented Dec 11, 2022

Hey man! I've noticed a bug when trying to make a booking on saturday or sunday. The calendar switches to monday but the booked date stays on saturday or sunday. Example: Today is sunday (11.12.2022.), on the calendar the selected day is monday, but when i submit my booking the booked date is 11.12.2022., it doesn't switch to monday (12.12.2022.). Saturdays and sundays are disabled. Everything else works perfectly. :)
Capture
Capture2
Capture3
Capture4

@radikris
Copy link
Owner

Hi!

@kristijanbarabas , actually I was aware of this issue, and basically it comes from the fact, that today (sunday and saturday are disabled), and the firstDay will be the one in the calendar, which is not disabled (currently Monday), but in your bookingService which you added, I think you did not handle this case in your side, and maybe your service bookingStart value will be datetime.now ... something?
image

Nevertheless, now I took care of this, and I will not only change the UI, but also the controller startingday, so now it should be bug free, in the latest version.

@kristijanbarabas
Copy link
Author

Yup, you are damn right! 😆 I'll be sure to check the new version. Thanks alot for your help! 😄

@radikris
Copy link
Owner

@kristijanbarabas Glad I could help, let me know if you tried out the new version and it is working properly

@helloooo
Copy link

Yup, you are damn right! laughing I'll be sure to check the new version. Thanks alot for your help! smile

hi
can you share your code of screen shot please

@radikris radikris closed this as completed Jan 2, 2023
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

3 participants