From 33eba10e88e8c65f23ef0e1292ed66210c73c30c Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Tue, 11 Nov 2008 15:24:16 +0100 Subject: [PATCH] fix small timezone issue (#786) with the date that is shown for a todo --- app/controllers/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application.rb b/app/controllers/application.rb index 31a370e0..b24dfd54 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -115,7 +115,7 @@ class ApplicationController < ActionController::Base def format_date(date) if date date_format = prefs.date_format - formatted_date = date.strftime("#{date_format}") + formatted_date = date.in_time_zone(prefs.time_zone).strftime("#{date_format}") else formatted_date = '' end