cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Time Zone conflict in Outlook when using Office365.V2CalendarPostItem

Posting to a shared calendar in Outlook (desktop installation of Office 365), the dates are correct.

Here's the issue: Hovering over the appointment, it's perfect. When I open the appointment, the times have been changed to OTC, and OTC is selected in the ribbon, and "Time Zones" are selected and greyed out.

 

Also, when viewed with Outlook online (Office 365), everything is fine.

 

   Office365.V2CalendarPostItem(
      SFICalendarID,
      Text("Pending " & NewLeaveTypeSelected & " for " & Office365Users.UserProfile(MyProfile.Id).DisplayName),
      Text(EditLeaveStart,DateTimeFormat.UTC),
      Text(EditLeaveEnd,DateTimeFormat.UTC),
      {
      Body: "Title: " & NewLeaveTitle & Char(13) & Char(10) & "Detail: " & NewLeaveDetail & ", " & " Hours requested: ",
      IsHtml: true
      }
    )

closed.pngopen.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper I
Helper I

Re: Time Zone conflict in Outlook when using Office365.V2CalendarPostItem

sierick

The following code works, except when creating a calendar event on the other side of a change in Daylight Savings Time. I haven't figured that out yet.

 

/*write to calendar*/  

    Office365.V2CalendarPostItem(

        SFICalendarID,

        Text("Pending ") & ThisLeaveType & Text(" request for ") & Office365Users.UserProfile(MyProfile.Id).DisplayName,

        DateAdd(EditLeaveStart, -TimeZoneOffset(),Minutes),

        DateAdd(EditLeaveEnd, -TimeZoneOffset(),Minutes),

        {

            Body: "Hours requested: " & EditRequestHours,

            TimeZone: "Eastern Standard Time",

            IsHtml: true,

            Location: ThisCalID,

            IsAllDay: false,

            Reminder:0

        }

    );

View solution in original post

7 REPLIES 7
Helper V
Helper V

Re: Time Zone conflict in Outlook when using Office365.V2CalendarPostItem

If you create the appointment directly in Outlook calendar, not from PowerApps, will the same issue occurs?

Highlighted
Helper I
Helper I

Re: Time Zone conflict in Outlook when using Office365.V2CalendarPostItem

No. I've been using Outlook for ...20 years (wow! it been that long?). Never experienced this before. Only from Powerapps.

Highlighted
Regular Visitor

Re: Time Zone conflict in Outlook when using Office365.V2CalendarPostItem

I've seen this as well. I've tried to modify the inputs, but I always get the behavior described above.

Highlighted
Advocate I
Advocate I

Re: Time Zone conflict in Outlook when using Office365.V2CalendarPostItem

Did anyone find a solution to this?  I have the same problem, it shows fine on Web based o365 Calendar, but from the Outlook client, it shows a 8 hour difference for me!

Highlighted
Helper I
Helper I

Re: Time Zone conflict in Outlook when using Office365.V2CalendarPostItem

sierick

The following code works, except when creating a calendar event on the other side of a change in Daylight Savings Time. I haven't figured that out yet.

 

/*write to calendar*/  

    Office365.V2CalendarPostItem(

        SFICalendarID,

        Text("Pending ") & ThisLeaveType & Text(" request for ") & Office365Users.UserProfile(MyProfile.Id).DisplayName,

        DateAdd(EditLeaveStart, -TimeZoneOffset(),Minutes),

        DateAdd(EditLeaveEnd, -TimeZoneOffset(),Minutes),

        {

            Body: "Hours requested: " & EditRequestHours,

            TimeZone: "Eastern Standard Time",

            IsHtml: true,

            Location: ThisCalID,

            IsAllDay: false,

            Reminder:0

        }

    );

View solution in original post

Highlighted
Super User III
Super User III

Re: Time Zone conflict in Outlook when using Office365.V2CalendarPostItem

@Elginsee other reply to your post in regard to this.

 

I believe you need to supply the Date parameter to the TimeZoneOffset function to get the correct offset for that date.

Without it, you are asking for the TimeZoneOffset of the current date only.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Highlighted
Advocate I
Advocate I

Re: Time Zone conflict in Outlook when using Office365.V2CalendarPostItem

Hi guys,

 

Any idea for TimeZone text for Paris (UTC+2)

 

Thx,

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,763)