Visitar URL original
docs: add dayjs date adapter to resources page by tabuckner · Pull Request #38031 · angular/angular · GitHub
The Wayback Machine - https://web.archive.org/web/20250503173848/https://github.com/angular/angular/pull/38031
Skip to content

docs: add dayjs date adapter to resources page #38031

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

tabuckner
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Angular Material's documentation suggests usage of a MomentJS implementation of the DateAdapter. Moment adds a lot of overhead in regards to Locales, whereas Day.js allows users to pick the locales they wish to include.

An earlier PR suggested adding the mat-dayjs-adapter package to the docs as an alternative for smaller bundles with ISO string support. However, it was suggested to add them to AIO instead.

Issue Number: angular/components#18337

What is the new behavior?

The alternative DateAdapter implementation would be included here.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Shifting this PR over to the angular.io site in response to a comment on angular/components#18354.

@pullapprove pullapprove bot requested a review from IgorMinar July 13, 2020 20:13
@ngbot ngbot bot added this to the needsTriage milestone Jul 28, 2020
@pullapprove pullapprove bot requested review from StephenFluin and removed request for IgorMinar July 28, 2020 22:45
@kapunahelewong kapunahelewong added effort1: hours risk: low feature Issue that requests a new feature labels Aug 26, 2020
@ngbot ngbot bot modified the milestones: needsTriage, Backlog Aug 26, 2020
@kapunahelewong kapunahelewong added the action: review The PR is still awaiting reviews from at least one requested reviewer label Aug 26, 2020
@kapunahelewong
Copy link
Contributor

Thanks for this, @tabuckner! Could you rebase to resolve the conflicts? Could you also amend your commit message as datepicker isn't a standard scope (and because you can omit it for many docs contributions). Feel free to use this:

docs: add dayjs date adapter to resources page

I have notes on rebasing and amending if you'd like a reference. If you have any questions, just let me know. 🌺

@tabuckner tabuckner force-pushed the day-js-date-adapter-docs branch from f5dcbd7 to e3d8135 Compare August 27, 2020 13:00
@tabuckner
Copy link
Contributor Author

@kapunahelewong thanks for prompting me to update the PR. Let me know if the commit messages still look wonky. 😃

@kapunahelewong
Copy link
Contributor

kapunahelewong commented Aug 27, 2020 •

Great! So our next step is marketing review. In the meantime, please let me know if you have any questions, @tabuckner. Thank you!

Edit: PS-I also updated the PR title just so that the two are the same.

@kapunahelewong kapunahelewong changed the title docs(datepicker): add dayjs date adapter documentation docs: add dayjs date adapter to resources page Aug 27, 2020
@kapunahelewong kapunahelewong added target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 3, 2020
@atscott atscott added action: merge The PR is ready for merge by the caretaker action: review The PR is still awaiting reviews from at least one requested reviewer and removed action: merge The PR is ready for merge by the caretaker action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 3, 2020
atscott pushed a commit that referenced this pull request Sep 3, 2020
@atscott atscott closed this in 1c7e5ce Sep 3, 2020
profanis pushed a commit to profanis/angular that referenced this pull request Sep 5, 2020
@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 Oct 4, 2020
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 cla: yes effort1: hours feature Issue that requests a new feature risk: low target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants