Need to consider date passed to days_from_today in the user's time zone. Closes #826.

This commit is contained in:
Eric Allen 2009-01-20 13:25:31 -05:00
parent 6bc68bcf6c
commit 0674c59d54

View file

@ -24,7 +24,7 @@ module ApplicationHelper
end end
def days_from_today(date) def days_from_today(date)
date.to_date - user_time.to_date date.in_time_zone.to_date - user_time.to_date
end end
# Check due date in comparison to today's date Flag up date appropriately with # Check due date in comparison to today's date Flag up date appropriately with