diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 39c591e4..8e8a2848 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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