mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 02:42:27 +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) {
|
if (!startDate) {
|
||||||
return;
|
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.
|
// Handle start and end time.
|
||||||
let startTime = null;
|
let startTime = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user