My data is stored in SQL so I have to do the workarounds for time.
I have a gallery that has a calculated label in it with this code
Text(Now() - First(ForAll(MatchAll(Text(ThisItem.MorningSigninTime),"PT(?:(?<hours>\d+)H)?(?:(?<minutes>\d+)M)?(?:(?<seconds>\d+)S)?"),Time(Value(hours),Value(minutes),Value(seconds)))).Value, "hh:mm")
The gallery items are
Sort(
Search(
Filter(
Filter(
'[dbo].[Today Activity Attendance]',
'Grade Sort' < 0
),
Not(IsBlank(MorningSigninTime)),
IsBlank(SignoutTime)
),
'Active Student Search'.Text,
"NoAccentFirst",
"NoAccentLast"
),
MorningSigninTime,
SortOrder.Ascending
)
Then I have a timer for every 10 seconds that OnTimerEnd is
Refresh('[dbo].[Today Activity Attendance]');Refresh('[dbo].[Today Activity Attendance Signed Out]')
The calculated time field only appears to update (recalculate) when the collection changes. It does not update on every refresh. Not sure how else I can force a refresh?