Event confirmation email shows in UTC time

New Contributor

Hello.

 

I have an M365 few room resource mailboxes, and I have created an SPfx solution that allows users to add new calendar reservations. Reservation is added to the calendar using the code below.

 

The calendar shows this item correctly (Outlook and webclient). Outlook web client displays confirmation email in correct timezone. My problem is that the Outlook desktop app displays the confirmation email using UTC format, which confuses my users.

 

For example:

 

The event starts at 10:30 and ends at 11:30 (local time). Unfortunately, Outlook shows this in UTC like this: "6.00 -7.30 (UTC) Coordinated Universal Time."

I am not sure if this is a problem with the Spfx solution or actual mailbox configuration. Relevant javascript code would be:

 

var off = + start.getTimezoneOffset(); //Current offset for user browser
var start = new Date(start.getTime() + off * 60 * 1000);
var end = new Date(end.getTime() + off * 60 * 1000);
start: { dateTime: start.toUTCString(), timeZone: "FLE Standard Time"},
end: {dateTime: end.toUTCString(), timeZone: "FLE Standard Time"},
client.api('/me/events').post(event).then(...);

 

This should work because the calendar shows the event at the correct time, and Exchange Online offers the confirmation mail at the local time. Unfortunately, Outlook does not.

 

Any ideas?

1 Reply