Skip to content

Conversation

@chrisjones-hmcts
Copy link
Contributor

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

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

(Corresponding MC PR: hmcts/rpx-xui-webapp#4750)

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.

@chrisjones-hmcts chrisjones-hmcts changed the title Exui 3066 halo 23226 dates times EXUI-3066 - halo 23226 dates times Nov 19, 2025
@chrisjones-hmcts chrisjones-hmcts changed the title EXUI-3066 - halo 23226 dates times EXUI-3066 - HALO-23226 dates times Nov 19, 2025
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants