From 874576f315b4737317e11328ff107ba479870078 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Mon, 25 Aug 2008 10:20:05 +0200 Subject: [PATCH] fix small error where Time was compared to Date --- app/controllers/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application.rb b/app/controllers/application.rb index 5a9a6fa9..55c89a60 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -173,7 +173,7 @@ class ApplicationController < ActionController::Base if show_from_date.nil? todo.show_from=nil else - todo.show_from = show_from_date < Time.now.utc ? nil : show_from_date + todo.show_from = show_from_date.to_time < Time.now.utc ? nil : show_from_date end saved = todo.save