cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dyee4613
Level 8

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
Highlighted
Community Support Team
Community Support Team

Re: Timezone Conversions

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
Community Support Team
Community Support Team

Re: Timezone Conversions

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.
dyee4613
Level 8

Re: Timezone Conversions

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

Highlighted
Community Support Team
Community Support Team

Re: Timezone Conversions

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
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 (5,199)