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?
Solved! Go to Solution.
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,
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,
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,
User | Count |
---|---|
124 | |
87 | |
86 | |
75 | |
69 |
User | Count |
---|---|
214 | |
181 | |
140 | |
97 | |
83 |