mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-07 01:38:50 +01:00
Remove improper adjustment of due dates by user time zone. This is the corollary fix to the one contained in [444]. Fixes #450.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@450 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
10417aca20
commit
cf4adff2e6
1 changed files with 2 additions and 3 deletions
|
|
@ -7,7 +7,7 @@ module ApplicationHelper
|
|||
def format_date(date)
|
||||
if date
|
||||
date_format = @user.prefs.date_format
|
||||
formatted_date = @user.prefs.tz.adjust(date).strftime("#{date_format}")
|
||||
formatted_date = date.strftime("#{date_format}")
|
||||
else
|
||||
formatted_date = ''
|
||||
end
|
||||
|
|
@ -46,8 +46,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def days_from_today(date)
|
||||
today = Time.now.utc.to_date
|
||||
@user.prefs.tz.adjust(date).to_date - @user.prefs.tz.adjust(today).to_date
|
||||
date.to_date - user_time.to_date
|
||||
end
|
||||
|
||||
# Check due date in comparison to today's date
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue