cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dyee4613
Helper V
Helper V

Timezone Conversions

Hi.  I'm running into an issue with PowerApps converting my date from local to UTC.  It uses the now function and stores it in a collection.  The collection has it in local time.  When I use a patch, it converts it to UTC.  However, I have an app that uses this same data collection/patch process and it doesn't convert it to UTC.  How can I fix this so it patches it over in local time?

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @dyee4613 ,

Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned.

 

Please make sure that the Time Zone setting of your Office 365 account is in same time zone as your local time zone.

 

As an alternative solution, you could add a normal text column in your Excel table to store the Date time value instead of using Date type column, then try your formula again, check if the issue is solved.

 

If the issue still exists, please consider re-create your Excel table, and re-generate an app based on your Excel table, try your Patch formula again, check if the issue still exists.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-xida-msft
Community Support
Community Support

Hi @dyee4613 ,

Could you please share a bit more about the issue within your app?

Do you patch the date time into your data source using Patch function?

 

Actually, when working date times within PowerApps, the date time value would be converted into UTC format automatically.

E.G. When you patch a date time (in your local time zone) value into a SP list, the date time value would be converted into a UTC format firstly, then pass it to your SP list. Within your SP list, the UTC format time value would be converted into the Time Zone format your SP Site set to.

In other words, if the Time Zone format of your SP Site is the same as your local time zone, the date time value stored in your SP list would be the same as that collected in your app.

 

Please check if the Time Zone of your data source is set to UTC. if the issue still exists, please consider take a try to re-create a new app based on your data source, then try it again, check if the issue is solved.

 

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-xida-msft 

 

Sure.  What information do you need? After it stores the date in the collection, it patches to my data source which is an excel file.  I'm not sure how I would go about converting the time. 

Hi @dyee4613 ,

Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned.

 

Please make sure that the Time Zone setting of your Office 365 account is in same time zone as your local time zone.

 

As an alternative solution, you could add a normal text column in your Excel table to store the Date time value instead of using Date type column, then try your formula again, check if the issue is solved.

 

If the issue still exists, please consider re-create your Excel table, and re-generate an app based on your Excel table, try your Patch formula again, check if the issue still exists.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,401)