fix: a calendar event that ends at midnight shows on one day in Month view

This commit is contained in:
silentoplayz 2026-10-27 18:16:15 -04:00
parent a4247cfde9
commit 5efcaca5d5

View file

@ -36,7 +36,7 @@
const map: Record<string, CalendarEventModel[]> = {};
for (const e of filteredEvents) {
const startMs = e.start_at / NS;
const endMs = (e.end_at || e.start_at) / NS;
const endMs = Math.max(startMs, (e.end_at || e.start_at) / NS - 1);
// Get local midnight for event start/end
const startDate = new Date(startMs);
const endDate = new Date(endMs);