MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    All Souls Day is displayed 1 day late.

    Scheduled Pinned Locked Moved Solved Troubleshooting
    5 Posts 2 Posters 603 Views 2 Watching
    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 Offline
      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 Offline
        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

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          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

          How to add modules

          learning how to use browser developers window for css changes

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

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

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • T Offline
              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 Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy