mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-12 02:04:40 +00:00
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.  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.  --------- Co-authored-by: Veeck <github@veeck.de>
29 lines
560 B
JavaScript
29 lines
560 B
JavaScript
/* 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;
|
|
}
|