All working but when i reserve a hour i've this problem:
"Your reservation could not be made
The start date and time requested is not valid.
The end date and time requested is not valid."
Do you help me please ?
Can you please post steps to reproduce?
I have altered the file:
I have changed part of the Validate() function to this:
if ($startPeriod == null || !$startPeriod->IsReservable() || !$startPeriod->BeginDate()->Equals($startDate))
Log::Debug('Validating rule SchedulePeriodRule. Fail 1 S:%s I:%s SPD:%s SD:%s', $startPeriod, $startPeriod->IsReservable(), $startPeriod->BeginDate(), $startDate);
The debug log shows:
2015-02-25T11:52:41-05:00  DEBUG default - [User=---] Validating rule AdminExcludedRule. Passed?: 1 [File=/var/www/apps/satbook-2.5.13/lib/Application/Reservation/Validation/ReservationValidationRuleProcessor.php,Line=35]
2015-02-25T11:52:41-05:00  DEBUG default - [User=---] Validating rule SchedulePeriodRule. Fail 1 S:Begin: 2015-03-08 02:45:00 America/New_York End: 2015-03-09 03:00:00 America/New_York Label: 2:45 AM I:1 SPD:2015-03-08 02:45:00 America/New_York SD:2015-03-08 17:00:00 America/New_York [File=/var/www/apps/satbook-2.5.13/lib/Application/Reservation/Validation/SchedulePeriodRule.php,Line=54]
2015-02-25T11:52:41-05:00  DEBUG default - [User=---] Validating rule SchedulePeriodRule. Fail 2 [File=/var/www/apps/satbook-2.5.13/lib/Application/Reservation/Validation/SchedulePeriodRule.php,Line=61]
2015-02-25T11:52:41-05:00  DEBUG default - [User=---] Validating rule SchedulePeriodRule. Passed?: [File=/var/www/apps/satbook-2.5.13/lib/Application/Reservation/Validation/ReservationValidationRuleProcessor.php,Line=35]
It appears that it's comparing these two Start Dates:
2015-03-08 02:45:00 America/New_York
2015-03-08 17:00:00 America/New_York
Same with End Dates. It's trying to compare if these are equal, but the times are off.
This exclusively happens on March 8. I can't find anything in the database for this time slot.
The problem is that there is no such time as 2:45AM on March 8 2015. This is when daylight savings time begins, skipping instantly from 2am to 3am.
ok so what do we need to do to get the validation to work for the 8th. I've got a service that needs time requests done for that day.
You'll need to pick a time after 2am
I can choose a time for the 8th before 2 am, its after 2 am i get this error, my time zone is set to America/Los_Angeles. Attached are the debug lines from the time request. I did not add the code above
I'm not able to reproduce this one. What version are you running?
Booked Scheduler v2.5.13
I can email you a test site that is still having issues as well as a test login if you want
Sure, send that over and I'll take a look.
Did you ever get the Source Forge message I sent you with the login info to test. Even though the day has passed I was never able to schedule time on the 8th past 2 am.
I did not. Please shoot me an email directly at email@example.com
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.