fix #841. New todos are now using at_midnight instead of the time of checking complete

please test to make sure it has the intended behavior
This commit is contained in:
Reinier Balt 2009-02-16 20:48:27 +01:00
parent fc84a5979a
commit cf625be4b4

View file

@ -817,7 +817,7 @@ class TodosController < ApplicationController
# for tomorrow.
date = date_to_check.at_midnight >= Time.zone.now.at_midnight ? date_to_check : Time.zone.now-1.day
new_recurring_todo = create_todo_from_recurring_todo(recurring_todo, date)
new_recurring_todo = create_todo_from_recurring_todo(recurring_todo, date.at_midnight)
end
end
end