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.
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
think you have to use utcnow() so it adapts to the end-user's timezone. Could be wrong though.
Hi All,
I found a similar thread that discusses timestamps in SharePoint. Please review the following and let me know if it's helpful
@Anonymous
Bump
Any luck? I have the same issue
bump, any assistance here would be appreciated.
Just checking back in, can anyone help on this issue?
WarrenBelz
146,658
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional