Hi Team
I have this variable for both date and time, date is correct in terms of format. but what i notice, im in SA local time now is 13:49pm, but its behind 11:49am i am using this variable format on power flow to trigger email, but on the email is giving me that incorrect time. How can i change this but still using the variable?
formatDateTime( trigger()?['outputs']?['headers']?['x-ms-user-timestamp'],'yyyy/MM/dd HH:mm:ss')
@mmbr1606 splendid, the time is correct as well date thanks mate
hey @gcizman2024
can you try this please:
For your specific case, assuming the original timestamp is in UTC (you might need to adjust this if the source time zone is different), the expression would look like this:
formatDateTime(convertTimeZone(trigger()?['outputs']?['headers']?['x-ms-user-timestamp'], 'UTC', 'South Africa Standard Time'), 'yyyy/MM/dd HH:mm:ss')
Let me know if my answer helped solving your issue.
If it did please accept as solution and give it a thumbs up so we can help others in the community.
Greetings
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1