Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(view/calendar): end date offset on display
Elian Doranee5cc18ef296
diff --git a/src/public/app/widgets/view_widgets/calendar_view.ts b/src/public/app/widgets/view_widgets/calendar_view.tsindex 56fcaf50e6..d89642fba8 100644--- a/src/public/app/widgets/view_widgets/calendar_view.ts+++ b/src/public/app/widgets/view_widgets/calendar_view.ts@@ -208,10 +208,8 @@ export default class CalendarView extends ViewMode {noteId: note.noteId};- const endDate = CalendarView.#offsetDate(note.getAttributeValue("label", "endDate") ?? startDate, -1);+ const endDate = CalendarView.#offsetDate(note.getAttributeValue("label", "endDate") ?? startDate, 1);if (endDate) {- // Fullcalendar end date is exclusive, not inclusive.- endDate.setDate(endDate.getDate() + 1);eventData.end = CalendarView.#formatDateToLocalISO(endDate);}