cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Drew1
Level: Powered On

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

@Drew1:

 

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

@Drew1:

 

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

Drew1
Level: Powered On

Re: utcNow gets next day

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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Kudoed Authors
Users Online
Currently online: 305 members 5,998 guests
Please welcome our newest community members: