Skip to content

Conversation

@chrisjones-hmcts
Copy link
Contributor

@chrisjones-hmcts chrisjones-hmcts commented Nov 19, 2025

Jira link

See EXUI-3066, EXUI-3005, EXUI-3003

(corresponding toolkit PR: hmcts/ccd-case-ui-toolkit#2046)

Changes across these two PRs:
Updated the datetime-picker component to use a dual control pattern, using a localDisplayControl to display local time to the user for interacting with, which is synced to the existing dateControl for UTC storage, using momentj.s for conversions.

Also replaced manual (native JS date) timezone offset calculations which could be vulnerable to daylight savings transitions with explicit moment.js based conversions.

Security Vulnerability Assessment

CVE Suppression: Are there any CVEs present in the codebase (either newly introduced or pre-existing) that are being intentionally suppressed or ignored by this commit?

  • Yes
  • [ x ] No

Copy link
Contributor

@Josh-HMCTS Josh-HMCTS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me, i like the approach of using one method (moment) to do dates instead of using a few different ways across everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants