Merge pull request #2895 from buxxi/develop

This commit is contained in:
Michael Teeuw 2022-08-06 18:38:23 +02:00 committed by GitHub
commit 4d8fb8c176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -22,6 +22,7 @@ _This release is scheduled to be released on 2022-10-01._
- Broadcast all calendar events while still honoring global and per-calendar maximumEntries.
- Respect rss ttl provided by newsfeed (#2883).
- Fix multi day calendar events always presented as "(1/X)" instead of the amount of days the event has progressed.
## [2.20.0] - 2022-07-02

View File

@ -469,10 +469,6 @@ const CalendarUtils = {
return;
}
// Adjust start date so multiple day events will be displayed as happening today even though they started some days ago already
if (fullDayEvent && startDate <= today && endDate > today) {
startDate = moment(today);
}
// if the start and end are the same, then make end the 'end of day' value (start is at 00:00:00)
if (fullDayEvent && startDate.format("x") === endDate.format("x")) {
endDate = endDate.endOf("day");