Skip to main content

Notifications

Announcements

No record found.

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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,459 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,066 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans