Skip to content
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

Fixed date comparison using the .isSameMonth option #726

Merged
merged 2 commits into from Sep 15, 2020

Conversation

lammertw
Copy link
Contributor

Comparing . isSameMonth currently first converts self to a Date, with a result that it can become a different month if it's at the end or beginning of the month in a different region. Therefore the existing unit test also fails.

This PR fixes that.

@malcommac malcommac added the bug label Sep 15, 2020
@malcommac malcommac added this to the 6.2.0 milestone Sep 15, 2020
@malcommac malcommac self-requested a review September 15, 2020 13:22
@malcommac malcommac changed the base branch from master to develop September 15, 2020 13:22
@malcommac malcommac changed the title Fix compare .isSameMonth Fix date comparison using the .isSameMonth option Sep 15, 2020
@malcommac malcommac merged commit 94dfe10 into malcommac:develop Sep 15, 2020
@malcommac malcommac changed the title Fix date comparison using the .isSameMonth option Fixed date comparison using the .isSameMonth option Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants