I'm a developer in England and I'm currently on British Summertime.
When adding an appointment via Office 365 API using the .Net Client Library for Office 365 Mail, Calendar and Contact API, the Timezone button on the Appointment when viewed in Outlook (2016) can't be un-clicked and the timezone list is always displaying UTC
See this image for an example
When I hover over the appointment in the Calendar within Outlook, the time in BST is shown (as expected).
See this image for an example
However, when I add an appointment to the calendar manually, the timezone button is not checked/clicked and I can freely check/uncheck the button. Also, when I click the button, the correct timezone is displayed (Dublin, Edinburgh, Lisbon, London).
Note that the appointment shows the correct times when viewing via Office 365 online - https://outlook.office.com/owa/
Why is this happening?
More Information:
After a while of searching on Google, I did come across https://social.technet.microsoft.com/Forums/office/en-US/44093e33-133d-4de7-9f67-9ec591453bd0/calendar-meeting-time-zone-display-issue?forum=outlook
However I do not see that option in https://outlook.office.com/owa/
In my code, I set the following properties on the Microsoft.Office365.OutlookServices.Event:
Private Sub UpdateEvent(ByVal cEvent As [Event], ByVal tCalendar As t_Calendar)
Dim cLocation As New Location()
cLocation.DisplayName = tCalendar.sLocation
Dim cBody As New ItemBody()
cBody.ContentType = BodyType.HTML
cBody.Content = tCalendar.sDescription
cEvent.Subject = tCalendar.sSummary
cEvent.Location = cLocation
cEvent.IsAllDay = False
cEvent.Start = New DateTimeOffset(tCalendar.dtStart)
cEvent.End = New DateTimeOffset(tCalendar.dtEnd)
cEvent.Body = cBody
End Sub
I have followed the guide https://github.com/jasonjoh/office365-azure-guides/blob/master/RegisterAnAppInAzure.md to Register an Office 365 API app in Azure AD.