Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

utcNow function gives the wrong time

(0) ShareShare
ReportReport
Posted on by 13

I am using utcNow() function in order to populate one of my datetime fields in the Sharepoint list which is meant to give me the UTC time of when the form was submitted. 

For whatever strange reason this produces current datetime minus 8 hours so rather giving me 16:00 UTC it gives me 08:00 am.

 

Any ideas as to why this happens and how to solve this.

  • Community Power Platform Member Profile Picture
    on at
    Re: utcNow function gives the wrong time

    This is f'ng ridiculous. They literally have a utcNow() function that returns a local time value based on sharepoint settings.  The function does not do what it says it does.

  • Rafal1 Profile Picture
    13 on at
    Re: utcNow function gives the wrong time

    Thank you 🙂

     

    Rafal1_1-1626717245489.png

     

     

  • Verified answer
    tom_riha Profile Picture
    10,127 Most Valuable Professional on at
    Re: utcNow function gives the wrong time

    That doesn't look like the settings of the SharePoint site where you store the date. Go to the SharePoint site where you store the date -> Settings -> Site administration: Regional settings.

    image.png

  • Rafal1 Profile Picture
    13 on at
    Re: utcNow function gives the wrong time

    Rafal1_0-1626716316048.png

     

    Yes, the platform is set to UTC and as you said, I do not want to do any additional calculations not to mess anything else later.

  • tom_riha Profile Picture
    10,127 Most Valuable Professional on at
    Re: utcNow function gives the wrong time

    It shouldn't be -8 in the flow, but I didn't want to completely ignore the possibility that somebody messed up that action.

    You can try to add 8 hours, but I'd rather double check the regional settings of the SharePoint site, if you store it as utcNow+8 in SharePoint then it might mess up any potential background logic in the future.

     

     

  • Rafal1 Profile Picture
    13 on at
    Re: utcNow function gives the wrong time

    I have just checked, regardless whether I use utcNow() function or a form submission time (dynamic object) I always get -8 hours in my Sharepoint list. (this would be another question: Why is form submission time producing UTC time - 8 hours too? My Microsoft platform is set to UTC timezone)

    Looks like the only solution might be adding 8 hours to the UTC time (or form submission time).

     

    BTW, how can it be -8 hours in the flow? Universal time is the same wherever we are on the planet is this not the purpose of this function? To always give same time regardless who and where runs it?

  • tom_riha Profile Picture
    10,127 Most Valuable Professional on at
    Re: utcNow function gives the wrong time

    When you check the flow run history, Is it -8 hours already in the flow, or only after you save it into SharePoint? If it's correct in the flow but wrong in SharePoint then SharePoint is doing the conversion. If it's wrong already in the flow then there's something wrong with the flow. 🙂 

  • Rafal1 Profile Picture
    13 on at
    Re: utcNow function gives the wrong time

    Thank you for responding.

     

    This process follows form submission but because response datetime was giving me incorrect time, I thought that using Universal time will solve it. It is even more puzzling as I am based in UK and none of my regional settings in any of the systems would be set to minus 8 hours.

  • tom_riha Profile Picture
    10,127 Most Valuable Professional on at
    Re: utcNow function gives the wrong time

    Hello @Rafal1 ,

    my first guess would be that it's due to the regional settings in SharePoint. You take utcNow() in UTC time zone, store it to SharePoint (SharePoint works always with time in UTC) and then your regional settings will convert it to UTC-8 on the SharePoint site.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1