From 66de0f9fd891821ac06a6ce58f40c1929430c129 Mon Sep 17 00:00:00 2001 From: Eric Allen Date: Wed, 2 Sep 2009 09:59:16 -0400 Subject: [PATCH] Don't set time to UTC for midnight in test. This was causing an intermittent test failure in GMT-4. --- test/functional/todos_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/todos_controller_test.rb b/test/functional/todos_controller_test.rb index 65cb9994..f14eac69 100644 --- a/test/functional/todos_controller_test.rb +++ b/test/functional/todos_controller_test.rb @@ -433,7 +433,7 @@ class TodosControllerTest < ActionController::TestCase # link todo_1 and recurring_todo_1 recurring_todo_1 = RecurringTodo.find(1) todo_1 = Todo.find_by_recurring_todo_id(1) - today = Time.now.utc.at_midnight + today = Time.now.at_midnight # change recurrence pattern to monthly and set show_from to today recurring_todo_1.target = 'show_from_date'