mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
Need to consider date passed to days_from_today in the user's time zone. Closes #826.
This commit is contained in:
parent
6bc68bcf6c
commit
0674c59d54
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def days_from_today(date)
|
def days_from_today(date)
|
||||||
date.to_date - user_time.to_date
|
date.in_time_zone.to_date - user_time.to_date
|
||||||
end
|
end
|
||||||
|
|
||||||
# Check due date in comparison to today's date Flag up date appropriately with
|
# 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