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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Outlook Connector - Po...
Power Apps
Answered

Outlook Connector - Posted event has incorrect start time but correct end time

(0) ShareShare
ReportReport
Posted on by 9

I'm building a canvas app for a school project and could use some help figuring this one out.

 

I have a simple screen where I wish to generate an event and post it to the current user's calendar. I have little issue with anything else except for the start time.

 

I am converting date and time stored in a text value elsewhere (in labels) on the screen to a datetime and using DateAdd() to make the datetimetimezone object needed for the V4CalendarPostItem() function. This is a simplified version of what I am doing:

 

 

 

Office365Outlook.V4CalendarPostItem(
LookUp(Office365Outlook.CalendarGetTables().value, DisplayName="Calendar").Name,
ATCEEDCNValue.Text,
DateAdd(DateTimeValue(ATCEEDBDValue.Text & " " & TimeValue(ATCEEDEDST1Value.Text)), TimeZoneOffset(), Minutes),
DateAdd(DateTimeValue(ATCEEDEDValue.Text & " " & TimeValue(ATCEEDEDET1Value.Text)), TimeZoneOffset(), Minutes),
"UTC",
{
...
}
)

 

 

 

When an event is posted to my calendar the start time is off. I would expect it to have the correctly converted start and end time, but it seems that only the end time is coming through correctly. Dates and everything else are as expected.

 

Here is an example:

The event should be from 3:00PM ET to 5:30PM ET. When in actuality, what I get is:

 

tkpadevsm_0-1649606329861.png

 

And, in the details where you can see the "real" timezone, you can see the UTC did not come through correctly:

 

tkpadevsm_1-1649606404404.png

 

This error is also reflected in-code upon highlighting (shown below), I just have no idea what's going on. Can someone help me figure out why I am getting 1 incorrect and 1 correct conversion with the same exact format/datatypes/etc.? Am I not creating the datetimetimezone object correctly?

 

---------------

 

DateTimeValue picks up correct time and date for start time

tkpadevsm_2-1649606533319.png

 

Conversion to UTC is incorrect

tkpadevsm_3-1649606609794.png

 

DateTimeValue picks up correct time and date for end time

tkpadevsm_4-1649606682960.png

 

Conversion to UTC is correct

tkpadevsm_5-1649606711831.png

 

Categories:
I have the same question (0)
  • Verified answer
    tkpadevsm Profile Picture
    9 on at

    Update:

     

    I realize now what it is doing. The start time/date is in EST and the end time/date is in EDT. Just need to force it to understand that the incoming data is in EST, then convert accordingly.

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @tkpadevsm ,

     

    Has the issue been resolved?

    If so, you could mark your own reply to close the case.

     

    Best Regards,

    Wearsky

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard