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

Function fillDays is not working correctly #129

Open
nicolasholanda opened this issue May 27, 2019 · 0 comments
Open

Function fillDays is not working correctly #129

nicolasholanda opened this issue May 27, 2019 · 0 comments

Comments

@nicolasholanda
Copy link

The function fillDays is making an wrong comparison, because when calls the function isDateBigger, it passes the minDate with the correct time and the current date (from iteration) with time 00:00. This is a problem, because if minDate is "2019-05-27 00:10", in some iteration of fillDays, the current date will be "2019-05-27 00:00" (same date, but with wrong time), thus isDateBigger will treat minDate as a bigger date, disabling the day "2019-05-27".

This can easily be resolved passing all days to isDateBigger, in fillDays, with the same time as minDate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant