From 9f8db1d2e7b98e0521f60c63d567af72cc3b7718 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 27 Feb 2009 13:06:38 +0100 Subject: [PATCH] Use dateString() as parameter for ListEvents. Fix end date of month' ListEvents call. --- kronolith/js/src/kronolith.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kronolith/js/src/kronolith.js b/kronolith/js/src/kronolith.js index 02290f7f4..cee2fd7b9 100644 --- a/kronolith/js/src/kronolith.js +++ b/kronolith/js/src/kronolith.js @@ -356,7 +356,7 @@ KronolithCore = { day.moveToBeginOfWeek(); firstDay = day.clone() monthEnd.moveToLastDayOfMonth(); - monthEnd.moveToBeginOfWeek(); + monthEnd.moveToEndOfWeek(); // Remove old rows. Maybe we should only rebuild the calendars if // necessary. @@ -472,7 +472,7 @@ KronolithCore = { _loadEvents: function(firstDay, lastDay, callback, calendar) { this.eventsLoading = firstDay.dateString() + lastDay.dateString(); - this.doAction('ListEvents', { start: firstDay.toJSON(), end: lastDay.toJSON() }, callback); + this.doAction('ListEvents', { start: firstDay.dateString(), end: lastDay.dateString() }, callback); }, /** -- 2.11.0