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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (1,719)