From b2201dba5a50a9834ffb4bd99535fd5164a60a48 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Thu, 22 Jan 2026 14:35:42 +0100 Subject: [PATCH 1/2] Fix edge case: export empty calendars --- www/calendar/export.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/calendar/export.js b/www/calendar/export.js index e6662eee0..5c824e78a 100644 --- a/www/calendar/export.js +++ b/www/calendar/export.js @@ -52,7 +52,7 @@ define([ module.main = function (userDoc) { - var content = userDoc.content; + var content = userDoc.content || {}; var ICS = [ 'BEGIN:VCALENDAR', From bc2b51b8788e47959883eb781cb092a8401a208a Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Thu, 22 Jan 2026 14:36:02 +0100 Subject: [PATCH 2/2] Fix calendar export: bug when exporting a calendar containing a modified recurring event in the future --- www/calendar/export.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/calendar/export.js b/www/calendar/export.js index 5c824e78a..09f262756 100644 --- a/www/calendar/export.js +++ b/www/calendar/export.js @@ -227,7 +227,7 @@ define([ if (ud.from) { // "From" updates are not supported by ICS: make a new event var _new = Util.clone(prev); - r.until = getICSDate(d - 1); // Stop previous recursion + r.until = d - 1; // Stop previous recursion delete r.count; addEvent(ICS, prev, null); // Add previous event Array.prototype.push.apply(ICS, toAdd); // Add individual updates