mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 01:08:50 +01:00
Fix for days calculation being shown as rational number in ruby 1.9.2
This commit is contained in:
parent
2a5008e686
commit
7e3d0bdbb3
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue