Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar not showing reoccurring full-day events on the day of the event (static calendar file) #2110

Closed
Feedy88 opened this issue Aug 6, 2020 · 11 comments

Comments

@Feedy88
Copy link

Feedy88 commented Aug 6, 2020

Hey there, first of all, thanks for this amazing project. I started setting up a few weeks ago and enjoy every time working on it.

Platform: Raspberry Pi 4, 2 GB, Raspbian 10 (buster); Electron 6.1.7

Node Version: 10.21.0

MagicMirror Version: 2.13

Description: For birthdays I am using a static calendar file saved in a folder using https://localhost:8080/PATHNAME/calendar.ics to feed it to the mirror. Before the actual date of the event the Birthdays are displayed correctly. On the actual day of the event, the events don't show up in the mirror. This goes only for reoccurring full day events. Full day events without reoccurance and reoccurring events which are not full day work fine.

Steps to Reproduce:

  • Create and ics file with the following format:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Static Birthdays//Rafal Rüßmann//EN
CALSCALE:GREGORIAN
X-WR-CALNAME;VALUE=TEXT:Birthdays_static_short
X-WR-TIMEZONE:Europe/Berlin
BEGIN:VTIMEZONE
TZID:Europe/Berlin
LAST-MODIFIED:20200806T101500Z
BEGIN:STANDARD
DTSTART:20191027T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20200329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
SUMMARY:Max Mustermann
DESCRIPTION:
DTSTAMP:20050806T080000Z
DTSTART;VALUE=DATE:20050806
DTEND;VALUE=DATE:20050806
RRULE:FREQ=YEARLY
END:VEVENT
END:VCALENDAR
  • Save calendar locally on MagicMirror
  • Feed calendar to via localhost

Expected Results: Seeing the full day even throughout the day of the event in the calendar.

Actual Results: Event only showing a day before but not on the actual day.

Configuration:

{
    module: "calendar",
    header: "Termine & Feiertage",
    position: "top_left",
    config: {
        fetchInterval: 60000,
        displaySymbol: true,
        showLocation: false,
        fade: true,
        fadePoint: 0.4,
        dateFormat: "D. MMM HH:mm",
        fullDayEventDateFormat: "D. MMM",
        timeFormat: "absolute",
        getRelative: 12,
        urgency: 0,
        maximumEntries: 5,
        calendars: [
            {
                symbol: "cocktail",
                url: "webcal://www.ecoline-media.de/ics/nordrhein-westfalen.ics"
            },
            {
                symbol: 'calendar-check',
                url: 'webcal://localhost:8080/modules/calendars/9*******-****-****-****-***********D.ics',
            },
            {
                symbol: 'birthday-cake',
                url: 'webcal://localhost:8080/modules/calendars/birthdays.ics',
            }
        ]
    }
},

Additional Notes: I already discussed this issue in the forum, recommendation was to craete a ticket, as config of MM and ics look fine.

@castletonroad
Copy link

Hi, I think my issue #2111 maybe the same, albeit manifesting itself via a different route.

@traveller255
Copy link

traveller255 commented Aug 22, 2020

Same problem (online calendar)
For now I use the old ical.js and it's working.

@rejas
Copy link
Collaborator

rejas commented Aug 22, 2020

hi @hangorazvan @Feedy88 is this issue also happening with the develop branch of the project?

@traveller255
Copy link

traveller255 commented Aug 22, 2020

I use develop branch and I make some test, I believe that new node-ical.js is in fact the problem, the module is OK
With the old node-ical.js from vendor folder of 2.11 module is working good.

@Feedy88
Copy link
Author

Feedy88 commented Aug 22, 2020

Hey @rejas,
will Test with dev-branch and let you know

@Feedy88 Feedy88 closed this as completed Aug 22, 2020
@Feedy88 Feedy88 reopened this Aug 22, 2020
@traveller255
Copy link

traveller255 commented Aug 22, 2020

The MM 2.11 node-ical.js from vendor folder in calendar module was ical 0.5.0 and issue fixed by #1798, then in MM 2.12 was replaced by ical 0.8.0 in node_modules folder ignoring fixing issue from #1798 regarding converting all dates to locale time first, then converting back to UTC time.
see also #2086

@traveller255
Copy link

Any update?

@rejas
Copy link
Collaborator

rejas commented Aug 30, 2020

The PR that moved ical to v0.8.0 didnt revert the #1798 fix. That came later with #2071.

@traveller255
Copy link

traveller255 commented Aug 30, 2020

Ok, but #1798 fix was good at the time, can be done again? Just asking, for now my solution is to use the old node-ical.js with v0.8.0

@traveller255
Copy link

#2121 I think this solve the problem

@Feedy88
Copy link
Author

Feedy88 commented Sep 2, 2020

Just checked, #2121 fixed the issue. Closing this one. Thanks a lot to all participants

@Feedy88 Feedy88 closed this as completed Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants