Skip to content

Conversation

@jelbourn
Copy link
Member

Clarifies that the moment date adapter lives in its own npm package.
Also removes language about recommending the moment adapter.

Fixes #18539

@jelbourn jelbourn added docs This issue is related to documentation merge safe target: patch This PR is targeted for the next patch release area: material/datepicker labels May 26, 2021
@jelbourn jelbourn requested a review from mmalerba May 26, 2021 20:33
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 26, 2021
native [`Date` object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date).
Thus it is not suitable for many locales. One of the biggest shortcomings of the native `Date`
object is the inability to set the parse format. We highly recommend using the `MomentDateAdapter`
object is the inability to set the parse format. You can use the `MomentDateAdapter`
Copy link
Contributor

Choose a reason for hiding this comment

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

The thing is we also don't recommend the NativeDateAdapter. Should we add something about what we do recommend? (Which I guess currently is to just write your own 😬)

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated the text to strong recommend anything but the native adapter, with moment and other being possible options.

Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

LGTM

Clarifies that the moment date adapter lives in its own npm package.
Also removes language about _recommending_ the moment adapter.

Fixes angular#18539
@jelbourn jelbourn force-pushed the date-adapter-package-install branch from 666a3ad to d26b2cb Compare May 27, 2021 23:49
@mmalerba mmalerba added the action: merge The PR is ready for merge by the caretaker label May 28, 2021
@mmalerba mmalerba merged commit ffee818 into angular:master May 28, 2021
mmalerba pushed a commit that referenced this pull request May 28, 2021
Clarifies that the moment date adapter lives in its own npm package.
Also removes language about _recommending_ the moment adapter.

Fixes #18539

(cherry picked from commit ffee818)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: material/datepicker cla: yes PR author has agreed to Google's Contributor License Agreement docs This issue is related to documentation target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Datepicker dependencies docs

3 participants