-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change multiday fullDay Event behaviour (#3396)
Hey! This PR should change the behaviour of starting fullDay events that last several days. The goal was to change the behavior of the "Starting today, ends T" (T=Tomorrow) event, so it should show how many days it will occur from the first day on Before situation: a fullDay event that started 'today' and ends several days later showed Today on the first day. The rest of the days it showed X days left. ![grafik](https://github.com/MagicMirrorOrg/MagicMirror/assets/6515818/da4e06cf-3122-44d9-b78a-88f9970c57d4) Y => Yesterday T => Tomorrow Target situation with this commit: a fullDay event that started 'today' shows 'X days left' from the first day on and 'Today' on the last day. ![grafik](https://github.com/MagicMirrorOrg/MagicMirror/assets/6515818/c42b9a27-35cf-47b7-9a8f-937a6009f904) --------- Co-authored-by: Veeck <[email protected]>
- Loading branch information
1 parent
d9926fa
commit e004b33
Showing
7 changed files
with
161 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* MagicMirror² Test config for fullday calendar entries over multiple days | ||
* | ||
* By Paranoid93 https://github.com/Paranoid93/ | ||
* MIT Licensed. | ||
*/ | ||
let config = { | ||
timeFormat: 12, | ||
|
||
modules: [ | ||
{ | ||
module: "calendar", | ||
position: "bottom_bar", | ||
config: { | ||
calendars: [ | ||
{ | ||
maximumNumberOfDays: 2, | ||
url: "http://localhost:8080/tests/mocks/calendar_test_multi_day_starting_today.ics" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}; | ||
|
||
/*************** DO NOT EDIT THE LINE BELOW ***************/ | ||
if (typeof module !== "undefined") { | ||
module.exports = config; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* MagicMirror² Test config for fullday calendar entries over multiple days | ||
* | ||
* By Paranoid93 https://github.com/Paranoid93/ | ||
* MIT Licensed. | ||
*/ | ||
let config = { | ||
timeFormat: 12, | ||
|
||
modules: [ | ||
{ | ||
module: "calendar", | ||
position: "bottom_bar", | ||
config: { | ||
calendars: [ | ||
{ | ||
maximumNumberOfDays: 2, | ||
url: "http://localhost:8080/tests/mocks/calendar_test_full_day_events.ics" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}; | ||
|
||
/*************** DO NOT EDIT THE LINE BELOW ***************/ | ||
if (typeof module !== "undefined") { | ||
module.exports = config; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
BEGIN:VCALENDAR | ||
VERSION:2.0 | ||
PRODID:-//ical.marudot.com//iCal Event Maker | ||
CALSCALE:GREGORIAN | ||
BEGIN:VTIMEZONE | ||
TZID:Europe/Berlin | ||
LAST-MODIFIED:20231222T233358Z | ||
TZURL:https://www.tzurl.org/zoneinfo-outlook/Europe/Berlin | ||
X-LIC-LOCATION:Europe/Berlin | ||
BEGIN:DAYLIGHT | ||
TZNAME:CEST | ||
TZOFFSETFROM:+0100 | ||
TZOFFSETTO:+0200 | ||
DTSTART:19700329T020000 | ||
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU | ||
END:DAYLIGHT | ||
BEGIN:STANDARD | ||
TZNAME:CET | ||
TZOFFSETFROM:+0200 | ||
TZOFFSETTO:+0100 | ||
DTSTART:19701025T030000 | ||
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU | ||
END:STANDARD | ||
END:VTIMEZONE | ||
BEGIN:VEVENT | ||
DTSTAMP:20240306T225415Z | ||
UID:[email protected] | ||
DTSTART;VALUE=DATE:20240306 | ||
RRULE:FREQ=DAILY | ||
DTEND;VALUE=DATE:20240307 | ||
SUMMARY:daily full days | ||
END:VEVENT | ||
END:VCALENDAR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
BEGIN:VCALENDAR | ||
VERSION:2.0 | ||
PRODID:-//ical.marudot.com//iCal Event Maker | ||
CALSCALE:GREGORIAN | ||
BEGIN:VTIMEZONE | ||
TZID:Europe/Berlin | ||
LAST-MODIFIED:20231222T233358Z | ||
TZURL:https://www.tzurl.org/zoneinfo-outlook/Europe/Berlin | ||
X-LIC-LOCATION:Europe/Berlin | ||
BEGIN:DAYLIGHT | ||
TZNAME:CEST | ||
TZOFFSETFROM:+0100 | ||
TZOFFSETTO:+0200 | ||
DTSTART:19700329T020000 | ||
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU | ||
END:DAYLIGHT | ||
BEGIN:STANDARD | ||
TZNAME:CET | ||
TZOFFSETFROM:+0200 | ||
TZOFFSETTO:+0100 | ||
DTSTART:19701025T030000 | ||
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU | ||
END:STANDARD | ||
END:VTIMEZONE | ||
BEGIN:VEVENT | ||
DTSTAMP:20240306T222634Z | ||
UID:[email protected] | ||
DTSTART;VALUE=DATE:20240301 | ||
RRULE:FREQ=DAILY | ||
DTEND;VALUE=DATE:20240303 | ||
SUMMARY:2 day events | ||
END:VEVENT | ||
END:VCALENDAR |