Skip to content

Conversation

@crisbeto
Copy link
Member

@crisbeto crisbeto commented Oct 7, 2025

Switches the live datepicker examples that were using Moment to use Luxon instead. This simplifies our build setup and avoids having to load in locale data.

Fixes #31998.

Switches the live datepicker examples that were using Moment to use Luxon instead. This simplifies our build setup and avoids having to load in locale data.

Fixes angular#31998.
@crisbeto crisbeto requested a review from a team as a code owner October 7, 2025 09:35
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Oct 7, 2025
@crisbeto crisbeto requested review from ok7sai and tjshiu and removed request for a team October 7, 2025 09:35
@angular-robot angular-robot bot added the area: docs Related to the documentation label Oct 7, 2025
@crisbeto crisbeto added target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Oct 7, 2025
@crisbeto crisbeto removed the request for review from ok7sai October 8, 2025 15:21
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Oct 8, 2025
@crisbeto crisbeto merged commit f6e8a02 into angular:main Oct 8, 2025
32 checks passed
adolgachev pushed a commit to adolgachev/components that referenced this pull request Oct 19, 2025
Switches the live datepicker examples that were using Moment to use Luxon instead. This simplifies our build setup and avoids having to load in locale data.

Fixes angular#31998.
@rbalet
Copy link

rbalet commented Nov 3, 2025

Hey @crisbeto. i had a look at the following commit, and I saw the following

By default the LuxonDateAdapter creates dates in your time zone specific locale. You can change
the default behaviour to parse dates as UTC by passing useUtc: true into provideLuxonDateAdapter:

But this doesn't seems to be true, as provideLuxonDateAdapter does only accept MatDateFormats as argument.
Do you see another option to for setting the UTC ?

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

Labels

action: merge The PR is ready for merge by the caretaker area: docs Related to the documentation target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(Datepicker): locale with MomentDateAdapter

3 participants