AmirkabirDataMiners / ADM-dateTimePicker

Pure AngularJs dateTimePicker
http://amirkabirdataminers.github.io/ADM-dateTimePicker
MIT License
244 stars 92 forks source link

Function fillDays is not working correctly #129

Open nicolasholanda opened 5 years ago

nicolasholanda commented 5 years ago

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.