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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

ADX Portal future Event date is incorrect

(0) ShareShare
ReportReport
Posted on by 80

I'm not sure if this is the right place to report a bug for Portals, but I think I found an issue how portals display Event dates on Events page.

It uses outdated library called date.js which incorrectly parses future date especially if the date falls within daylight savings.

Moment.js and vanilla JavaScript Date.parse produce correct date. See below:

datejs-issue.png

first window uses standard ADX events page with date.js loaded which overrides Date.parse method, while second browser with no side libraries loaded, you can see that date.js produces 2pm while it should be 1pm.

Sample project: (put a breakpoint at "  var endDate = Date.parse(endText);" line inside 1.html - this code was taken from standard ADX portal.js file when it turns GMT dates to local timezone)

Sample project

*This post is locked for comments

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans