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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Time Setting differenc...
Power Apps
Answered

Time Setting difference between Power Apps and SharePoint/OneDrive for Biz

(0) ShareShare
ReportReport
Posted on by 17

I am building a basic Power App the is using Excel Online as the data source. One of the Excel columns is Time - as in an appointment time. For the time to render in the Power App I am using the following: Property is set to Text - formula is Text(DateAdd(ThisItem.AppointmentTime, TimeZoneOffset(Now()), Minutes), "h:mm AM/PM"). This works great with the exception that is it off by one hour- example Excel cell is 9:30 AM; Power App renders this as 8:30 AM. It looks like this is due to a difference in UTC Time settings - SharePoint/OneDrive is UTC minus 8 (I am in the PDT timezone) where as the Power App function TimeZoneOffset is set to 420 minutes or UTC minus 7 hours. PowerApps is the correct time due to daylight savings time. 

 

Any thoughts on how to hack this? 

 

Categories:
  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    Power apps has a TimezoneOffset() function that can be used to adjust for daylight savings time in a particular locale. DateAdd, DateDiff, and TimeZoneOffset functions in Power Apps - Power Apps | Microsoft Docs

  • GunnerJoe Profile Picture
    17 on at

    Thanks @Pstork1 . I am using the TimezoneOffset() function to adjust for daylight savings time (UTC minus 7 for Pacific Daylight Time). When I look in the settings for SharePoint/OneDrive the time is set for UTC minus 8 - which I think this is the issue why the date in my Excel spreadsheet (hosted in OneDrive) is different by one hour than what is rendered in my Power App.  Maybe this question needs to be asked in a different forum - SharePoint Online/OneDrive forum? 

  • Verified answer
    Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    You need to supply the date of the appointment as a parameter inside the timezoneoffset() to get it to adjust correctly for daylight savings time.  If the appointment date isn't the same as Now() you'll get the wrong offset.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard