mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
Fix for days calculation being shown as rational number in ruby 1.9.2
This commit is contained in:
parent
8d6b9b5dbd
commit
0dad59df4c
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