cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Powerapp for SharePoint Calendar - Converting UTC to Local Time Zone

Hello!

 

I've been working on a project for my team regarding capacity planning. For this project I'm currently using a SharePoint calendar app and PowerApps. In the PowerApp, I have the SP calendar connected (data connector) through a form so that users can input the information and PowerApps submits it to the calendar on SharePoint. The "Date Time Zone" in the Date Value is set to local, however after doing some reading I understand that PowerApps can't actually pick up the user's local time zone. So all of the dates and times are being sent to SharePoint as UTC and setting dates and times approximately 5 (EST) to 8 hours (PST) earlier than they should be.

 

For the past two days, I've been trying to figure out how to convert the time to user's local time and came across this article by Microsoft: "DateAdd, DateDiff, and TimeZoneOffset functions in Powerapps". However, 1) I don't know if this would address and fix the issue I'm experiencing and 2) I cannot figure out how to create the referenced "StartTime" variable or where to add the code it mentions under "Converting From UTC" (DateAdd( StartTime, −TimeZoneOffset( StartTime ), Minutes )). Any help is greatly appreciated. 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @amandahommel ,

 

 

I have made a test on my side, there is no difference between the date time submitted in PowerApps and the data time shown in SP calendar.

Your issue is probably caused by the difference of time zone setting between SharePoint and PowerApps.

In default, the Time Zone of PowerApps is based on your local time zone. So please check the Time Zone of SharePoint site.

Go to Site Setting - Regional Setting - Time Zone

Snipaste_2019-12-13_17-41-01.png

If this doesn't make sense, please let me know.

Best regards,

Sik

View solution in original post

1 REPLY 1
Community Support
Community Support

Hi @amandahommel ,

 

 

I have made a test on my side, there is no difference between the date time submitted in PowerApps and the data time shown in SP calendar.

Your issue is probably caused by the difference of time zone setting between SharePoint and PowerApps.

In default, the Time Zone of PowerApps is based on your local time zone. So please check the Time Zone of SharePoint site.

Go to Site Setting - Regional Setting - Time Zone

Snipaste_2019-12-13_17-41-01.png

If this doesn't make sense, please let me know.

Best regards,

Sik

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Check out the Power Apps Community Call for January 2021

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (6,155)