Hi bridgetAS,
Wow, looks like you’ve done a lot of customizations. I just tested the form myself but I wasn’t able to reproduce the problem. Can you give me a specific date/time match where the error happens for you? I’ll see if I can reproduce it then.
I quickly scanned the changes you made to the booking-form.js file, but didn’t see anything that stuck out to me. I’d suggest backing up the plugin with all of your customizations, then installing the stock one, to see if that helps. That will at least tell you whether the issue is caused by one of your changes, so you can start hunting it down.
Hi Nate,
I am able to more easily recreate the issue here: https://sd.theshouthouse.com/reservations/
If you got to March 18th, fill in all information except for your email address and submit the reservation. When the form comes back with the error message, the reservation date is set for March 17th. It’s a small error, but it is causing some customers to make reservations on the wrong day if they miss a field.
Thank you!
Hi Bridget,
Even at that link I can’t reproduce the problem. When the page reloads it’s still at March 18th for me.
Since you obviously have the technical skills to make customizations, I’ll give you some pointers on how you can figure out where the date is getting changed. The date is received and processed in /includes/Bookings.class.php in the validate_submission(). I’d recommend you test the date that you receive $_POST['rtb-date'] and the date that is then added to the booking $this->date by adding a bit of code at the end of that function to echo it to the browser.
That should tell you whether the date is getting shifted during the validation process, and how it’s being adjusted.