Skip to content

Function fillDays is not working correctly #129

Open
@nicolasholanda

Description

@nicolasholanda

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions