Hi @P_SA ,
Based on the needs that you mentioned, I think the TimeZoneOffset() function could achieve your needs. The TimeZoneOffset function is used to the number of minutes between the user's local time and UTC (Coordinated Universal Time).
TimeZoneOffset() value = UTC (Coordinated Universal Time) - User's Local Time value
On my side, the TimeZoneOffset function result returns -480 (negative value), it means I am is (UTC + 8 ) Time Zone. If the TimeZoneOffset() function result is 480 (positive value), it means it is in (UTC - 8 )Time Zone.
If you want to convert your local time value into a UTC Time value, I think the combination of DateAdd function and TimeZoneOffset function could achieve your needs. Please take a try with the following workaround:
DateAdd(Now(), TimeZoneOffset(), Minutes)
On your side, you may need to type the following formula:
If(
ThisItem.Running = 0,
Text(
DateAdd(ThisItem.StartDateTime, TimeZoneOffset(), Minutes), "[$-en-US]mmm dd yyyy hh:mm:ss") & " - " & Text(ThisItem.EndDateTime, "[$-en-US]mmm dd yyyy hh:mm:ss"
),
Text(ThisItem.StartDateTime, "[$-en-US]mmm dd yyyy hh:mm:ss") & " - " & "Running"
)
Please check the following article for more details:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-dateadd-datediff
If you want to convert UTC time value to local Time value, please modify above formula as below:
DateAdd(Now(), -TimeZoneOffset(), Minutes)
Best regards,