MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED All Souls Day is displayed 1 day late.

    Troubleshooting
    2
    5
    232
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Tribun last edited by Tribun

      Hi folks, when I enter the holidays from Apple in the calendar module, All Souls Day is displayed 1 day too late. All Saints ‘Day is displayed in 6 days, All Souls’ Day in 8 days.
      The day is displayed correctly on the Ipad and the Iphone.
      I’m using the developer branch.

      DTSTART;VALUE=DATE:20201102
      CLASS:PUBLIC
      SUMMARY;LANGUAGE=de-AT:Allerseelen
      TRANSP:TRANSPARENT
      CATEGORIES:Feiertag
      X-APPLE-UNIVERSAL-ID:4b6d2f05-680e-7b5e-043f-8cbd2ad082c0
      END:VEVENT
      BEGIN:VEVENT
      DTSTAMP:20171204T190108Z
      
      https://p39-calendars.icloud.com/holidays/at_de.ics
      

      IMG_0087.png

      S 3 Replies Last reply Reply Quote 0
      • S
        sdetweil @Tribun last edited by

        @Tribun its because the cal entry doesn’t have an end date (DTEND: record)
        I have found a storage corruption… resetting the end whacks the start date value…

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • S
          sdetweil @Tribun last edited by sdetweil

          @Tribun wanna try a fix for me?

          edit the ~/MagicMirror/modules/default/calendar/calendarfetcher.js, approx line 118

          					if (typeof event.end !== "undefined") {
          						endDate = eventDate(event, "end");
          					} else if (typeof event.duration !== "undefined") {
          						endDate = startDate.clone().add(moment.duration(event.duration));
          					} else {
          						if (!isFacebookBirthday) {
                                                                  endDate = startDate           // change from this
          							endDate = moment(startDate.format("x"),'x')    // to this
          

          Sam

          Create a working config
          How to add modules

          T 1 Reply Last reply Reply Quote 1
          • S
            sdetweil @Tribun last edited by

            @Tribun I have submitted fix for this
            https://github.com/MichMich/MagicMirror/pull/2178

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • T
              Tribun @sdetweil last edited by

              @sdetweil Thanks for the fix, now it is displayed correctly.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy