Merge pull request #76 from maddentim/fixes

Fix for #1254 - days shows as rational number instead of integer
This commit is contained in:
Reinier Balt 2012-04-05 11:37:48 -07:00
commit affb802791

View file

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