Fix wrong optimization in yearly recurrence calc

This commit is contained in:
Francis Lachapelle
2019-01-18 15:16:23 -05:00
parent 0186e6404f
commit ca9f83ec1f
3 changed files with 23 additions and 13 deletions
@@ -227,8 +227,9 @@
}
else
{
// Year was skipped, added 12 months to the counter
monthDiff += 12;
// Year was skipped, jump to following year
monthDiff += (13 - currentMonth);
currentMonth = 1;
}
}