I am making an app that sends an approval request on teams, and then creates an item on SharePoint. I run this flow when I press a button:
MyFlow.Run(User().FullName, Text(inpStart.SelectedDate, "mm/dd/yyyy") & " " & inpStartHr.SelectedText.Value & ":" & inpStartMin.SelectedText.Value & " " & inpStartHalf.SelectedText.Value, Text(inpEnd.SelectedDate, "mm/dd/yyyy") & " " & inpEndHr.SelectedText.Value & ":" & inpEndMin.SelectedText.Value & " " & inpEndHalf.SelectedText.Value, inpReason.SelectedText.Value); Navigate(Confirmation)
I know it is a lot of text so I will break down the inputs. First is the name of the user, then a start time, then an end time, then just a result from a choice field. The times are made by appending the hour, minute, and AM/PM to a date (in text format). When I put these times in the teams approval request description using my flow, they show up exactly as expected from the text boxes. However, when the flow puts it in the SharePoint list using the exact same input, date/time is 7 hours behind what was picked.
I sent the request and viewed the SharePoint from the same device so I am in the same time zone (EDT). Why is the time different on SharePoint and how do I fix it? Thanks.