diff --git a/calendar/js/et2_widget_planner.js b/calendar/js/et2_widget_planner.js
index b4a637ac22..bb98ed049b 100644
--- a/calendar/js/et2_widget_planner.js
+++ b/calendar/js/et2_widget_planner.js
@@ -1134,8 +1134,7 @@ var et2_calendar_planner = (function(){ "use strict"; return et2_calendar_view.e
if(!this.options.show_weekend && [0,6].indexOf(t.getDay()) !== -1 ) continue;
var holidays = [];
var tempDate = new Date(t);
- tempDate.setMinutes(tempDate.getMinutes()-start.getTimezoneOffset());
- var day_class = this.day_class_holiday(tempDate,holidays);
+ tempDate.setMinutes(tempDate.getMinutes()-tempDate.getTimezoneOffset());
var title = '';
var state = '';
@@ -1151,10 +1150,11 @@ var et2_calendar_planner = (function(){ "use strict"; return et2_calendar_view.e
{
title = this.egw().lang(date('D',t)).substr(0,2)+'
'+date('j',t);
}
- state = new Date(t.valueOf() - start.getTimezoneOffset() * 60 * 1000).toJSON();
+ state = new Date(t.valueOf() - t.getTimezoneOffset() * 60 * 1000);
+ var day_class = this.day_class_holiday(state,holidays);
content += '