none
PHP EWS: Uncaught SoapFault exception: [a:ErrorSchemaValidation] .... The string '2017-04-21' is not a valid DateTime value. RRS feed

  • Question

  • I have posted this issue on developers github but he does not appear to have answered any issues for months. Any assistance is appreciated.

    Version (e.g. 1.0, dev-master): 1.0, dev-master
    PHP version: 5.5.38-1
    Microsoft Exchange version: 2013

    Description of problem:
    I am trying to use this example https://github.com/jamesiarmes/php-ews/blob/master/examples/user/meeting-suggestions.php and I get the error below.

    $start = new DateTime('tomorrow 00:00:00');
    $end = new DateTime('next thursday 00:00:00');
    $version = Client::VERSION_2013;
    
    PHP Fatal error: Uncaught SoapFault exception: 
    [a:ErrorSchemaValidation] The request failed schema validation: The 
    'http://schemas.microsoft.com/exchange/services/2006/types:StartTime' 
    element is invalid - The value '2017-04-21' is invalid according to its 
    datatype 'http://www.w3.org/2001/XMLSchema:dateTime' - The string 
    '2017-04-21' is not a valid DateTime value.

    Thursday, April 20, 2017 5:23 PM

All replies