mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 10:15:52 +01:00
fix(calendar): end date when inserting with time
This commit is contained in:
@@ -194,7 +194,12 @@ export default class CalendarView extends ViewMode {
|
||||
if (!startDate) {
|
||||
return;
|
||||
}
|
||||
const endDate = CalendarView.#formatDateToLocalISO(CalendarView.#offsetDate(e.end, -1));
|
||||
let endDate;
|
||||
if (e.allDay) {
|
||||
endDate = CalendarView.#formatDateToLocalISO(CalendarView.#offsetDate(e.end, -1));
|
||||
} else {
|
||||
endDate = CalendarView.#formatDateToLocalISO(e.end);
|
||||
}
|
||||
|
||||
// Handle start and end time.
|
||||
let startTime = null;
|
||||
|
||||
Reference in New Issue
Block a user