From 004a56c4f8e7aa03ce51be98d83a9db1b7977261 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 26 Jul 2016 09:51:36 -0600 Subject: [PATCH] Make sure listview header gets a date --- calendar/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index 91ad0b3969..c8941cb5e6 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -3968,11 +3968,11 @@ jQuery.extend(app.classes.calendar,{ listview: app.classes.calendar.prototype.View.extend({ header: function(state) { - var startDate = new Date(state.first); + var startDate = new Date(state.first || state.date); startDate = new Date(startDate.valueOf() + startDate.getTimezoneOffset() * 60 * 1000); var start_check = ''+startDate.getFullYear() + startDate.getMonth() + startDate.getDate(); - var endDate = new Date(state.last); + var endDate = new Date(state.last || state.date); endDate = new Date(endDate.valueOf() + endDate.getTimezoneOffset() * 60 * 1000); var end_check = ''+endDate.getFullYear() + endDate.getMonth() + endDate.getDate(); return app.calendar.View._owner(state) +