web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Flow not calculating the correct days or hours

(0) ShareShare
ReportReport
Posted on by 1,119

Hi Guys,

 

Thanks to the help of another member @fchopo  I have got my flow that works out the days or hours since a column Date Reported was added. The issue is that it isn't bringing back the correct days or hours. I was hoping one of you kind members can help. The Date reported Date is 22/12/20 10:30

 

Flow

 

Screenshot_20201230_170248.pngScreenshot_20201230_170328.pngScreenshot_20201230_170406.pngScreenshot_20201230_170434.png

 

Flow Results

 

Screenshot_20201230_170656.pngScreenshot_20201230_170721.pngScreenshot_20201230_170808.pngScreenshot_20201230_170832.pngScreenshot_20201230_170855.pngScreenshot_20201230_170918.pngScreenshot_20201230_170945.png

I have the same question (0)
  • v-litu-msft Profile Picture
    on at
    Re: Flow not calculating the correct days or hours

    Hi @jbrines,

     

    I think it is caused by the time zone.

    The utcNow() function returns Coordinated Universal Time, so you should convert it to the time in your time zone:

    Screenshot 2021-01-01 110747.jpg

     

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

  • jbrines Profile Picture
    1,119 on at
    Re: Flow not calculating the correct days or hours

    @v-litu-msft Still doing the same. I am in the UK so was much to convert.

     

    Days show 0 and hours show 13. Not all the list items show dates as they have still to be added.

  • v-litu-msft Profile Picture
    on at
    Re: Flow not calculating the correct days or hours

    Hi @jbrines,

     

    Are these dates always has the same time gap?

    If they are, you could consider using addHours() function to adjust them.

     

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

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 560 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 347 Moderator

#3
Expiscornovus Profile Picture

Expiscornovus 262 Most Valuable Professional

Last 30 days Overall leaderboard