mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 17:28:50 +01:00
Merge pull request #76 from maddentim/fixes
Fix for #1254 - days shows as rational number instead of integer
This commit is contained in:
commit
affb802791
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