From 083e97bbdd6b8f34efad88e095a36f4eab84b1a6 Mon Sep 17 00:00:00 2001 From: BenZhang Date: Wed, 8 Feb 2012 22:22:44 +1030 Subject: [PATCH] fix time tracking, calendar current time zone bug --- app/helpers/calendars_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/calendars_helper.rb b/app/helpers/calendars_helper.rb index 3f3290cde5..517e45534b 100644 --- a/app/helpers/calendars_helper.rb +++ b/app/helpers/calendars_helper.rb @@ -64,7 +64,7 @@ def build_calendar(year,month,small=false) cell_text = "
#{cur.mday}
" cell_attrs = {} - cell_attrs[:class] = "day this_month cal_wd#{cur.wday} #{'today' if (cur == Time.current.to_date)} " + cell_attrs[:class] = "day this_month cal_wd#{cur.wday} #{'today' if (cur == Time.current.in_time_zone(current_user.time_zone).to_date)} " cell_attrs[:id] = "day_#{cur.month}_#{cur.mday}" #if markable?(calendar,marked,year,month,cell_text)