I am working with PHP and Outlook Calendar REST API
, I am able to create the events just fine except that the date I give API to create an events is getting incremented by 11 hours and something is wrong with end_date also, for example if i am telling the API to create the event from 2014-03-31T15:00:00-0000
to 2014-03-31T16:00:00-0000
it ends up creating the event from 2014-04-01T02:00:00+1100
to 2014-04-01T02:30:00+1100
This is what my API URL looks like
https://apis.live.net/v5.0/9898ef90931244e8/events?name=testing_event&description=event_description&start_time=2014-03-31T15:00:00-0000&end_time=2014-03-31T16:00:00-0000&access_token=token-goes-here&method=POST
if I remove the -0000
at the end, i get the following error
{
"error": {
"code": "request_parameter_invalid",
"message": "The value of input parameter 'start_time' isn't valid. The expected formats for this parameter are the following: '1970-01-01T00:00:00Z', '1970-01-01T00:00:00.000Z', '1970-01-01 00:00:00Z'. In all cases, 'Z' is interchangeable with a time zone offset of the form: '+00:00', '-00:00', '+0000' or '-0000'."
}
}
I will really appreciate any help as I have spent days trying to fix this and I am pretty much out of all ideas..