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
April 2016 isSame as empty object #3085
Comments
It's actually just that moment("april 2016").format()
"2016-04-01T00:00:00-04:00"
moment({}).format()
"2016-04-01T00:00:00-04:00" It's fair to ask why |
Should we modifiy it to make the default value become current MS? |
I'd like to take a closer look at this if possible. I think it's reasonable to expect calling |
I agree. Would accept a PR. |
Hello, I would like to take a crack at this for my first contribution! Thanks! |
@jakeaaron there is actually already an open PR on this, #3111. We have a few more up-for-grabs that we would love for you to take a look at. My bad for not closing this earlier, doing so now. |
Ok, no problem! |
https://jsfiddle.net/u71dx24a/1/
When comparing dates, if you compare Apr 2016 to an empty moment object, the isSame method returns true. This is not the case with March 2016, or April 2015.
The text was updated successfully, but these errors were encountered: