cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

utcNow gets next day

Hi,

 

I have a flow that is running on a recurrence each day and I am attempting to get items at the start of that day. My flow runs, but it is getting items for the next day.  Also, when I trigger it manually, it works as expected. 

 

I am unsure why it is working this way; any help or suggestions would be appreciated. 

 

 

I am using the following expression within the "Get items" step:

 

Modified gt startOfDay(utcNow(),'yyyy-MM-ddTHH:mm:ssZ')


getItems.pngGet Items

 

flowTimeStamp.pngResults

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: utcNow gets next day

@Anonymous:

 

I suspect your issue is related to time zone differences.  Flow uses UTC for all time actions.  You might Convert Time Zone action to convert UTC to your local time and use the output from that action as the start time for your recurrence.

 

If this addresses your issue, please mark your question as solved.

 

Scott

 

 

 

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

2 REPLIES 2
Super User
Super User

Re: utcNow gets next day

@Anonymous:

 

I suspect your issue is related to time zone differences.  Flow uses UTC for all time actions.  You might Convert Time Zone action to convert UTC to your local time and use the output from that action as the start time for your recurrence.

 

If this addresses your issue, please mark your question as solved.

 

Scott

 

 

 

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

Anonymous
Not applicable

Re: utcNow gets next day

@ScottShearer Thanks, I'll give that a try. 

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,361)