Skip to content

Conversation

@zxcvdavid
Copy link
Contributor

I found this problem from: https://twitter.com/laruence/status/582766663705083904
This problem can be reproduced if the day num we are parsing is smaller than today's num.

Example:
Today is 31/03/2015, we want get the last day of April
Today is 29/05/2015, we want get the last day of Feb.

@laruence
Copy link
Member

@derickr ping

@laruence laruence added the Bug label Mar 31, 2015
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent seems to be a bit off

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will fix this, thanks.

@derickr
Copy link
Member

derickr commented Mar 31, 2015

I've fixed it in a slightly more comprehensive way by using constants instead of hard coded 1 and 2 values.

@derickr derickr closed this Mar 31, 2015
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.

4 participants