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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Why is getTimeZoneOffsetMinutes method different in JavaScript API then in ComponentFramework?

(0) ShareShare
ReportReport
Posted on by 4

Hi, does anybody know why this method has different signature or have a workaround to get timezone offsett based on date parameter?

In JavaScript we are limited to current date and time and that might be wrong due to daylight savings. This method does not accept any parameters.

However, while working with PCF this method accepts datetime parameter and gives correct offsett based on that. Here are links to documentation on both of these:

getGlobalContext.userSettings (Client API reference) in model-driven apps - Power Apps | Microsoft Docs

getTimeZoneOffsetMinutes - Power Apps | Microsoft Docs

Thanks in advance

I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 117

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 76 Super User 2026 Season 1

#3
Martin Dráb Profile Picture

Martin Dráb 58 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans