Report mask skips month

Task #12049

 

If the current month had 31 days and the following month had fewer days, the following month was left out on the report mask when changing the month. This is because a month was added to the current date. In this case, the system took into account the 31st of the following month, which did not exist, and switched directly to the 1st of the next month.

 

This bug has now been fixed.