microsoft / teams-powerapps-app-templates

Sample Teams app built by Power Apps
MIT License
181 stars 126 forks source link

Teams Inspection App - Incorrect Date and Time assigned to completed Inspections under Inspection Review #46

Open RebeccaWilso opened 1 year ago

RebeccaWilso commented 1 year ago

I have had an issue with the Teams Inspection app for several months. The Teams Inspection app is installed and used to record the daily inspection of holiday huts. When an Inspection is done, under Review Inspections, it shows a record of the Inspection but records it with the incorrect date and time. This occurs for every user across a range of devices. All devices used have the correct current date and time (BST). The date and time can be up to a year out, some show as 2024, not just a few months. Due to the incorrect date/time being assigned to Inspections, all Analytics are out.

I have tried logging this with Microsoft, as Inspections shows in teams as a Microsoft app, however the power apps team have come back - 'We reached out to the MS collaborators / product group, of the functionality regarding this , they've stated "Inspection is an app that belongs to a group of apps known as OOB apps. These apps have been made open source and as such are no longer receiving PG support. ' So Microsoft have now washed their hands of it.

Can anyone provide advice - my client is obviously unhappy I have recommended this as a solution and now it doesn't work. Where does the app pick up the date/time from? How can I get it to record the correct date and time as per the device.

DickardKain commented 1 year ago

Hey there, sorry for replying to such an old post - I have registered an account just to reply to this as I have seen plenty of other posts too about the inspections app dates showing as a date in the future. I had the same problem and resolved it by doing the the following:

  1. Locate and select the "lblInspections_Date" label (under: Items Screen > conItemDetails > galInspections)

  2. Go to the "advanced" properties for the label.

  3. Adjust the very first line of the "text" field from: DateTimeValue(Text(ThisItem.createdon), gblUserLanguage) to: DateTimeValue(Text(ThisItem.createdon))

  4. Republish and test.

I am unsure what the gblUserLanguage is doing here, but it does not appear to have had any negative affect on the app by deleting it. It may cause other issues if you are using a different language though, but I hope this works for you!