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:
lukemelia 2007-02-22 03:47:58 +00:00
parent 10417aca20
commit cf4adff2e6

View file

@ -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