From 0674c59d54236a2c33046469a37b8bdd89bc7b9f Mon Sep 17 00:00:00 2001 From: Eric Allen Date: Tue, 20 Jan 2009 13:25:31 -0500 Subject: [PATCH] Need to consider date passed to days_from_today in the user's time zone. Closes #826. --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 549f2fbc..ff01fcae 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -24,7 +24,7 @@ module ApplicationHelper end def days_from_today(date) - date.to_date - user_time.to_date + date.in_time_zone.to_date - user_time.to_date end # Check due date in comparison to today's date Flag up date appropriately with