ebartz/home-automation

Invalid date returned in garbage collection function

Opened this issue · 0 comments

If we are at the end of the month then the garbage_get_next_date() function does not work. This is because it is searching for the next taget date in the same month.

Tis should be changed so if we are behind the last date in the month the function should search in the next month. Also remember that the year also can change ;)