MagicMirror: Calendar: end date missing for multi day events (like holidays) (followup to #2529)
Platform: Raspberry Pi 3, current OS uname -r: 5.10.52-v7+
Node Version: what is this? how do I get this info?
MagicMirror Version: 2.16.0 (problem occured after upgrading from 2.13.0, problem still existed in 2.15.0).
Description: I show holidays with start and end dates. The shown config worked well with 2.13.0, after upgrading to 2.15.0/2.16.0 the end date disappeared. Now, only the current day of the current holiday is shown.
Steps to Reproduce: With my config in MM 2.16.0
Expected Results: start (or current) date AND end date “Sa 10. Apr. - Fr. 16. Apr.”
Actual Results: only start (or current) date “Sa 10. Apr.”
Configuration:
{
module: "calendar",
header: "Ferien Hessen",
position: "top_bar",
config: {
tableClass: "medium",
colored: true,
fetchInterval: 900000,
fullDayEventDateFormat: "dd DD. MMM",
timeFormat: "absolute",
urgency: 0,
getRelative: 0,
maximumEntries: 1,
maxTitleLength: 50,
showEnd: true,
dateEndFormat: "dd DD. MMM",
calendars: [
{
// Ferien Hessen 2021
symbol: "democrat",
color: "#ffbbbb",
url: "https://www.ferienwiki.de/exports/ferien/2021/de/hessen"
},
]
}
},
Additional Notes: The option “showEnd” is shown two times in the Calenders doku with similiar descritions!
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 27 (4 by maintainers)
Commits related to this issue
- fix fullday/showend conflict #2629 — committed to sdetweil/MagicMirror by sdetweil 2 years ago
No, i think you are right. You should address it in a new issue (feature request).
the code actually uses
dateFormat for the startDate
@jupadin: You can find my configures symbol and color in the first post, it is
There you also see the set configured formats @sdetweil mentioned too.
But I think it should be dateEndFormat according to https://docs.magicmirror.builders/modules/calendar.html
@jupadin the cal entry shown does not show THE event start date, but TODAY thru the end. we don’t know WHEN it started in the past… could be yesterday, or in this case last month. you could change the fulldateFormat (check the spelling) to include the day I suppose…
thanks… very helpful… I created a matching one with an RRULE… i see they flipped ongoing to now hideOngoing vs showOngoing…
but the net is, I think there is a bug , the code (in calendar.js)
if u add an ‘else’ in between and set the settings like this
then u get the start/end as u expect