Skip to main content

Notifications

Announcements

No record found.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,904 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,605 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans