mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-22 12:11:41 +08:00
fix(view/calendar): end date offset on display
This commit is contained in:
parent
6d3325766d
commit
ee5cc18ef2
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user