web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Time Zone conflict in ...
Power Apps
Answered

Time Zone conflict in Outlook when using Office365.V2CalendarPostItem

(0) ShareShare
ReportReport
Posted on by

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

Categories:
I have the same question (0)
  • Lisabel0 Profile Picture
    154 on at

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

  • Community Power Platform Member Profile Picture
    on at

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

  • jtcain Profile Picture
    2 on at

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

  • SE-23071427-0 Profile Picture
    13 on at

    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!

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    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

            }

        );

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymoussee 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.

  • Johann_CHARB Profile Picture
    4 on at

    Hi guys,

     

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

     

    Thx,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard