Search code examples
microsoft-graph-apimicrosoft-graph-calendar

Microsoft graph returning bad request when creating event in daylight savings time


I am trying to create an event using Microsoft Graph API. I am getting the following error.

{
  "error": {
    "code": "TimeZoneNotSupportedException",
    "message": "A valid TimeZone value must be specified. The following TimeZone value is not supported: 'Eastern Daylight Time'.",
    "innerError": {
      "date": "<Date>",
      "request-id": "<RequestID GUID>"
    }
  }
}

How to handle daylight savings time in Microsoft Graph?


Solution

  • It's handled automatically. Use Eastern Standard Time instead.