cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

How to keep original time

The time shows on the list: 10/7/2019 11:43 AM 

Capture2.PNG

Flow: using formatDateTime expression:

formatDateTime(triggerBody()?['xxxTime'],'MM/dd/yyyy h:mm:ss')

Capture3.PNG

Result: 10/07/2019 4:43:00, it automatically convert to UTC.

Capture.PNG

 

The result I want: 10/7/2019 11:43 AM ( don't change the timezone, just shows as original time)

Also, all people's input time depends on their own time zone, so I can't determine the source timezone, can't use convertimezone expression. What can I do?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: How to keep original time

@picnicfunL 

All Flow dates and times are in UTC.  If you are using SharePoint, SharePoint stores all dates/times in UTC - they are converted to the timezone set for th site when displayed.  You need to use one of the time zone conversion expressions or action if you want to see the date/time in your time zone.  If your issue is with an approval email, you have no control over the time zone displayed.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

3 REPLIES 3
Highlighted
Super User
Super User

Re: How to keep original time

@picnicfunL 

All Flow dates and times are in UTC.  If you are using SharePoint, SharePoint stores all dates/times in UTC - they are converted to the timezone set for th site when displayed.  You need to use one of the time zone conversion expressions or action if you want to see the date/time in your time zone.  If your issue is with an approval email, you have no control over the time zone displayed.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Highlighted
Frequent Visitor

Re: How to keep original time

Hi @ScottShearer 

 

Thanks for your answer, I have one more question: the timezone set for the site when displayed, so it means if people input date in the same site/list, all the time is display at the same timezone, right? 

 

 For example, I live on the west coast and input 11:40 am, and my co-worker lives on the east coast, both us will see the same time 11:40 am, because we using the same site?

Highlighted
Super User
Super User

Re: How to keep original time

@picnicfunL
You are correct
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (10,402)