-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[pickers] Fix DST issue with America/Asuncion
timezone and AdapterMoment
#15552
[pickers] Fix DST issue with America/Asuncion
timezone and AdapterMoment
#15552
Conversation
current = this.addDays(current, 1); | ||
currentDayOfYear = current.get('dayOfYear'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original snippet uses .diff
but it also work if you just check the dayOfYear
property which is a lot cheaper to access.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, this is a way more efficient and easier to understand solution.
Great job. 👍
Deploy preview: https://deploy-preview-15552--material-ui-x.netlify.app/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not feel like a very high price to pay for covering "maintenance mode" adapter edge-cases. 👌
current = this.addDays(current, 1); | ||
currentDayOfYear = current.get('dayOfYear'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, this is a way more efficient and easier to understand solution.
Great job. 👍
Cherry-pick PRs will be created targeting branches: v7.x |
Fixes #14730