From fc48eab1e783c6421e9766e2da3644acb388dcec Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 16 Dec 2015 23:06:42 +0000 Subject: [PATCH] Correct header holidays east of GMT --- calendar/js/et2_widget_planner.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/calendar/js/et2_widget_planner.js b/calendar/js/et2_widget_planner.js index 960086fdf1..cfd237347f 100644 --- a/calendar/js/et2_widget_planner.js +++ b/calendar/js/et2_widget_planner.js @@ -1059,7 +1059,9 @@ var et2_calendar_planner = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResize for(var left = 0,i = 0; i < days; t.setDate(t.getDate()+1),left += day_width,++i) { var holidays = []; - var day_class = this.day_class_holiday(t,holidays); + var tempDate = new Date(t); + tempDate.setMinutes(tempDate.getMinutes()-start.getTimezoneOffset()); + var day_class = this.day_class_holiday(tempDate,holidays); var title = ''; var state = '';