mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 02:02:29 +08:00
fix(calendar): end date when inserting with time
This commit is contained in:
parent
55ccbfe1cc
commit
ccd9bfc1e7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user