We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi!
The problem is this line let currentDayModel = new Date(currentYear, dayMonth - 1, day)
let currentDayModel = new Date(currentYear, dayMonth - 1, day)
dpicker/src/dpicker.js
Line 507 in ce8d2aa
Because after that u are using the moment-adapter to compare currentDayModel with min and max using isSameOrAfter / isSameOrBefore
currentDayModel
min
max
isSameOrAfter / isSameOrBefore
When moments timezone is set to another timezone, the day u are comparing is not on the day currentDayModel is.
The text was updated successfully, but these errors were encountered:
I found a solution:
let currentDayModel = new Date(Date.UTC(currentYear, dayMonth - 1, day));
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Hi!
The problem is this line
let currentDayModel = new Date(currentYear, dayMonth - 1, day)
dpicker/src/dpicker.js
Line 507 in ce8d2aa
Because after that u are using the moment-adapter to compare
currentDayModel
withmin
andmax
usingisSameOrAfter / isSameOrBefore
When moments timezone is set to another timezone, the day u are comparing is not on the day
currentDayModel
is.The text was updated successfully, but these errors were encountered: