From 58490c24b710cc8431d200653a3a891a522073e8 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 24 Jul 2018 16:20:50 -0600 Subject: [PATCH] * Calendar - add birthday icon to planner for time scales less than a month --- calendar/js/et2_widget_planner.js | 11 ++++++++--- calendar/templates/default/app.css | 2 +- calendar/templates/pixelegg/app.css | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/calendar/js/et2_widget_planner.js b/calendar/js/et2_widget_planner.js index cdba50590b..5434028842 100644 --- a/calendar/js/et2_widget_planner.js +++ b/calendar/js/et2_widget_planner.js @@ -1149,6 +1149,8 @@ var et2_calendar_planner = (function(){ "use strict"; return et2_calendar_view.e tempDate.setMinutes(tempDate.getMinutes()-tempDate.getTimezoneOffset()); var title = ''; var state = ''; + state = new Date(t.valueOf() - t.getTimezoneOffset() * 60 * 1000); + var day_class = this.day_class_holiday(state,holidays, days); if (days <= 3) { @@ -1162,8 +1164,6 @@ 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() - t.getTimezoneOffset() * 60 * 1000); - var day_class = this.day_class_holiday(state,holidays); content += '