From 98b12c024b3864d0e6b7c31fbfb65f09f0f49492 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 23 Nov 2015 17:02:51 +0000 Subject: [PATCH] Fix bug where single events spanning 2 days did not show in the second day --- calendar/js/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/calendar/js/app.js b/calendar/js/app.js index 37fbd605c6..ad9ccc56bf 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -2391,6 +2391,9 @@ app.classes.calendar = AppJS.extend( if(dates.start.substr(0,10) !== dates.end.substr(0,10)) { var end = new Date(Math.min(new Date(record.data.end), new Date(state.last))); + end.setUTCHours(23); + end.setUTCMinutes(59); + end.setUTCSeconds(59); var t = new Date(Math.max(new Date(record.data.start), new Date(state.first))); do