#144 The start date and time requested is not valid.

Next_Release
closed
nobody
None
9
2016-12-05
2014-08-06
Impero
No

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 ?
Thanks

1 Attachments

Discussion

  • Nick Korbel

    Nick Korbel - 2014-09-08

    Can you please post steps to reproduce?

     
  • John Richard Moser

    I have altered the file:

    lib/Application/Reservation/Validation/SchedulePeriodRule.php

    I have changed part of the Validate() function to this:

                if ($startPeriod == null || !$startPeriod->IsReservable() || !$startPeriod->BeginDate()->Equals($startDate))
                {
                        $errors->AppendLine(Resources::GetInstance()->GetString('InvalidStartSlot'));
                        if (!$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 [13007] 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 [13007] 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 [13007] 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 [13007] 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.

     
  • Nick Korbel

    Nick Korbel - 2015-02-25

    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.

     
  • emerham

    emerham - 2015-03-03

    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.

     
  • Nick Korbel

    Nick Korbel - 2015-03-03

    You'll need to pick a time after 2am

     
  • emerham

    emerham - 2015-03-03

    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

     
  • Nick Korbel

    Nick Korbel - 2015-03-03

    I'm not able to reproduce this one. What version are you running?

     
  • emerham

    emerham - 2015-03-03

    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

     
  • Nick Korbel

    Nick Korbel - 2015-03-04

    Sure, send that over and I'll take a look.

     
    • emerham

      emerham - 2015-03-10

      Hi Nick,
      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.

       
      • Nick Korbel

        Nick Korbel - 2015-03-10

        I did not. Please shoot me an email directly at nick@twinkletoessoftware.com

         
  • Nick Korbel

    Nick Korbel - 2016-12-05
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks