cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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')


Get ItemsGet Items

 

ResultsResults

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

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
Highlighted
Super User III
Super User III

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

Highlighted
Anonymous
Not applicable

Re: utcNow gets next day

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

Helpful resources

Announcements
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (4,801)