mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 09:51:35 +00:00
fix: a calendar event that ends at midnight shows on one day in Month view
This commit is contained in:
parent
a4247cfde9
commit
5efcaca5d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue