fix regression in recurring todos

This commit is contained in:
Reinier Balt 2013-09-17 15:40:20 +02:00
parent a31c0a7a5d
commit 62bc47b26b
2 changed files with 2 additions and 5 deletions

View file

@ -489,7 +489,7 @@ class RecurringTodo < ActiveRecord::Base
case self.recurrence_selector
when 0 # specific day of the month
if start.mday >= day
if (previous && start.mday >= day) || (previous.nil? && start.mday > day)
# there is no next day n in this month, search in next month
#
# start += n.months