mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-16 09:41:23 +00:00
fix: a calendar event that ends after midnight keeps its end time (#33290)
This commit is contained in:
parent
0ac55c8e72
commit
a8e8e7e792
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@
|
|||
loading = true;
|
||||
try {
|
||||
const startNs = dateTimeToNs(startDate, allDay ? '00:00' : startTime);
|
||||
const endDays = overnight && !endsPastMidnight() ? 0 : endDayOffset;
|
||||
const endDays = endsPastMidnight() ? Math.max(endDayOffset, 1) : overnight ? 0 : endDayOffset;
|
||||
const shiftedEndDate = endDate
|
||||
? nsToDateStr(dateTimeToNs(startDate, '12:00') + endDays * 24 * 60 * 60 * 1000 * NS)
|
||||
: '';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue