From cf625be4b42f28fa21b57cee8af49bb4f70ffb27 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Mon, 16 Feb 2009 20:48:27 +0100 Subject: [PATCH] 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 --- app/controllers/todos_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index ca1e37c1..cac6b723 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -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