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
The function endOf of 2017-10-15 returns a value greater than startOf of 2017-10-16
The code we've done as fix:
let endOf = dates.clone().endOf('day') const startOfDayAfter = dates.clone().add(1, 'days').startOf('day') if (startOfDayAfter.isBefore(endOf)) { endOf = startOfDayAfter.add(-1, 'milliseconds') }
The text was updated successfully, but these errors were encountered:
This issue was originally found on react-dates/react-dates/issues/776
Sorry, something went wrong.
Yeah, this is an old bug and it's particularly acute in Brazil because of the midnight DST. See e.g. #1990, #4164, #2749, and most importantly #3132
@icambron, after opening the issue I looked into the code and fixed it: #4254
Successfully merging a pull request may close this issue.
The function endOf of 2017-10-15 returns a value greater than startOf of 2017-10-16
The code we've done as fix:
The text was updated successfully, but these errors were encountered: