fix small timezone issue (#786) with the date that is shown for a todo

This commit is contained in:
Reinier Balt 2008-11-11 15:24:16 +01:00
parent 793f43ef07
commit 33eba10e88

View file

@ -115,7 +115,7 @@ class ApplicationController < ActionController::Base
def format_date(date) def format_date(date)
if date if date
date_format = prefs.date_format date_format = prefs.date_format
formatted_date = date.strftime("#{date_format}") formatted_date = date.in_time_zone(prefs.time_zone).strftime("#{date_format}")
else else
formatted_date = '' formatted_date = ''
end end