mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 04:02:12 +00:00
fix calendar when event has no DTEND record
This commit is contained in:
parent
568f952573
commit
e83b4d7d42
@ -23,6 +23,7 @@ _This release is scheduled to be released on 2021-01-01._
|
|||||||
- Fix calendar fetcher subsequent timing (#2160)
|
- Fix calendar fetcher subsequent timing (#2160)
|
||||||
- Rename Greek translation to correct ISO 639-1 alpha-2 code (gr > el). (#2155)
|
- Rename Greek translation to correct ISO 639-1 alpha-2 code (gr > el). (#2155)
|
||||||
- Add a space after icons of sunrise and sunset (#2169)
|
- Add a space after icons of sunrise and sunset (#2169)
|
||||||
|
- Fix calendar when no DTEND record found in event, startDate overlay when endDate set (#2177)
|
||||||
|
|
||||||
## [2.13.0] - 2020-10-01
|
## [2.13.0] - 2020-10-01
|
||||||
|
|
||||||
|
@ -117,7 +117,8 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn
|
|||||||
endDate = startDate.clone().add(moment.duration(event.duration));
|
endDate = startDate.clone().add(moment.duration(event.duration));
|
||||||
} else {
|
} else {
|
||||||
if (!isFacebookBirthday) {
|
if (!isFacebookBirthday) {
|
||||||
endDate = startDate;
|
// make copy of start date, separate storage area
|
||||||
|
endDate = moment(startDate.format("x"), "x");
|
||||||
} else {
|
} else {
|
||||||
endDate = moment(startDate).add(1, "days");
|
endDate = moment(startDate).add(1, "days");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user