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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Now() is correct in Po...
Power Apps
Unanswered

Now() is correct in PowerApps but wrong once pushed to SharePoint via Patch()

(0) ShareShare
ReportReport
Posted on by 53

I have a Visitor Management Solution PowerApp which checks users in and out of an office.

 

On button click following the check-in process, I am running a Patch() command to take the current time via Now() and store this value as a timestamp to a list in SharePoint Online.

 

Now() shows the correct local time in PowerApps, but once this value is pushed to SharePoint, the value is two hours in the past. I'm in CST. What's the recommendation here? Is this simply a bug?

 

This is not a "your time-zone is wrong in SharePoint" issue.

 

I can do something like DateAdd(Now(), -2, Hours) in order to get the data pushed to SharePoint correctly but then I'll have to make the same correction/conversion everywhere in my app where this date-time is returned and shown. This approach would also not support situations where multiple time-zones are in play which will be common for me moving forward.

Categories:
I have the same question (0)
  • patrickabel Profile Picture
    53 on at

    Just checking back in, can anyone help on this issue?

  • patrickabel Profile Picture
    53 on at

    bump, any assistance here would be appreciated. 

  • Community Power Platform Member Profile Picture
    on at

    Any luck? I have the same issue

  • Community Power Platform Member Profile Picture
    on at

    Bump

  • Community Power Platform Member Profile Picture
    on at

    Hi All,

     

    I found a similar thread that discusses timestamps in SharePoint. Please review the following and let me know if it's helpful 

     

    https://powerusers.microsoft.com/t5/Expressions-and-Formulas/Write-Date-Time-to-Sharepoint/td-p/159479

     

    @Anonymous 

  • Community Power Platform Member Profile Picture
    on at

    think you have to use utcnow() so it adapts to the end-user's timezone. Could be wrong though.

  • dallinp12 Profile Picture
    2 on at

    Check your sharepoint regional settings.  I had the same issue and my end-user's sharepoint site was set to Pacific Time, while we're actually on Eastern Time.  Changing this fixed my issue

    dallinp12_0-1706210259109.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard