cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MartinVasek
Level: Powered On

Calendar post item with recurring can't handle daylight saving?

Hello,

 

I'm trying to make an option for users to put event to their calendar (simple V2CalendarPostItem does it). But I found a problem with posting recurring events. It works but when it goes after 27th of October (daylight save switch day) events are shifted by one hour. Setting timezone didn't help. 

 

PowerApps really can't handle this or is there any trick to fix it? Can you help please?

 

Thank you for help

1 REPLY 1
TopShelf-MSFT
Level 10

Re: Calendar post item with recurring can't handle daylight saving?

Hi @MartinVasek please review the following. It helped a previous user solve the problem you're experiencing. 

 

Do you need the TimeZoneOffset?

We use the calendar posting and don't use it, just a straight date/time.

 

However, if you do need it, then I believe your issue is that you are not telling the TimeZoneOffset what the date is for the TimeZoneOffset.

TimeZoneOffset without the optional "Date" parameter will return the offset for the current date.

So, I believe, in this case, you would want to put the start and end dates in the parameter for the function:

 

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

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

@TopShelf-MSFT 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (6,695)