cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tiffany-Jo
Helper V
Helper V

Get different date

HI

I want to know why I create the date of one share point list based on the other share point list.

We got different date.

Does that impacted by timezone?

I set recurrence trigger and use the expressions such as addDays(utcNow(), -3, 'yyyy-MM-ddTHH:mm:ssZ').

could you please kindly give me some tips?

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Tiffany-Jo ,

 

Update:

I have made a test just now and find the Time zone works on my side, and you could also take a try with it.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

9 REPLIES 9

Hi @Tiffany-Jo 

 

Following your thread from here: https://powerusers.microsoft.com/t5/General-Power-Automate/Get-different-date/m-p/524021#M48594

 

This is definitely due to time zone issues. You need to change the regional settings on the sharepoint site to your region and then pass the date time values. 

 

You can check the troubleshoot in the post below:

 

https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/10-MS-Flow-hacks-troubleshoots-wor...

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

v-alzhan-msft
Community Support
Community Support

Hi @Tiffany-Jo ,

 

Have you take a try with @Tiffany-Jo 's suggestion?

You could also take a try to add or sub the time zone difference on the utcNow() for troubleshooting this issue.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi Thank you for you reply.

could you please kindly tell how to add the timezone to utcNow().This is Japan location.

Hi @Tiffany-Jo 

 

You can use the convert time action for that: 

rre.PNG

 Select your time zone from the destination time zone and use the output of this action. 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

HI Thank you. could you please kindly check if below setting is correct and tell how to update the expression highlighted in yellow.

キャプチャ.JPG

Hi @Tiffany-Jo 

 

In the Format string option of the convert time action, select the value as highlighted in my previous response. 

 

In the expression, for the modified le field, you can add the expression as adddays(otuputoftheconvertedtime, -3)

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

Hi @Tiffany-Jo ,

 

The expression should be as below:

addDays(body('Convert_time_zone'), -3, 'yyyy-MM-ddTHH:mm:ssZ')

Or you could add the 9 hour to UTC time directly so you needn't the Convert time zone action:

addDays(addHours(utcNow(),9), -3, 'yyyy-MM-ddTHH:mm:ssZ')

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HI Thank you very much.

Could you please kindly tell if I could set as below( no change of expression).

It seems that Recurrence time zone is not working.

キャプチャ.JPG

Hi @Tiffany-Jo ,

 

Update:

I have made a test just now and find the Time zone works on my side, and you could also take a try with it.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,819)