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.

    Annual Dates are off by one day in default Calendar module

    Scheduled Pinned Locked Moved Troubleshooting
    calendardaterepeating
    17 Posts 3 Posters 4.5k Views 3 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.
    • C Offline
      ctkjedi
      last edited by

      And yeah, I’ve read through the half dozen or so other posts with similar issue (ex. https://forum.magicmirror.builders/topic/8856/calendar-module-1-day-error/6) but even copying those configs to the letter haven’t solved the problem. All the annual, all day events (holidays, birthdays, anniversaries) show as being one day after they actually occur. I’ve checked and rechecked the config, restarted and rebooted but I keep seeing the same thing over and over again. At first I thought MagicMirror was pranking me by showing April Fool’s Day on the 2nd of April, but all the repeating dates are a day late.

      MM v 2.14.0
      Calendar module config:

      {
                              module: 'calendar',
                              header: 'Kirkman Home Calendar',
                              position: 'top_left',
                              config: {
                                      fullDayEventDateFormat: 'M/D',
                                      timeFormat: 'absolute',
                                      nextDaysRelative: true,
                                      showEnd: false,
                                      getRelative: 0,
                                      urgency: 0,
                                      titleReplace: {"'s Birthday":""},
                                      customEvents: [{keyword: 'Birthday', symbol: 'birthday-cake', color: 'Gold'}],
                                      calendars: [
                                              {
                                                      symbol: "calendar",
                                                      url: "https://calendar.google.com/calendar/ical/XXX/basic.ics"
                                              },
                                              {
                                                      symbol: "glasses",
                                                      url: "https://calendar.google.com/calendar/ical/XXX/basic.ics"
                                              }
                                      ],
                              }
                      },
      

      I wouldn’t at all be surprised to find out I misplaced a quotation mark or a semicolon, but could someone take a glance to see if I’ve missed something or is the module currently borked? Thanks!

      S M 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @ctkjedi
        last edited by

        @ctkjedi this is usually because the date in the ICS file isn’t right…

        can u show me one entry from the ics file, its just text, each event is
        begin vevent
        to
        end vevent

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          ctkjedi @sdetweil
          last edited by

          @sdetweil

          BEGIN:VEVENT
          DTSTART;TZID=America/Los_Angeles:19520402T000000
          DTEND;TZID=America/Los_Angeles:19520403T000000
          RRULE:FREQ=YEARLY;WKST=SU;UNTIL=20361231T000000Z
          DTSTAMP:20210316T001016Z
          UID:**REDACTED**
          CREATED:20210314T202209Z
          DESCRIPTION:
          LAST-MODIFIED:20210314T202209Z
          LOCATION:
          SEQUENCE:0
          STATUS:CONFIRMED
          SUMMARY:Mom's birthday
          TRANSP:OPAQUE
          END:VEVENT
          

          This SHOULD be on April 2nd, but it’s displaying on the mirror as the 3rd. On Google Calendar, it’s fine.

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            ctkjedi @ctkjedi
            last edited by

            @sdetweil I tried defaulting back to a standard config and I’m seeing the same off results. I’m noticing it’s not just annual dates, but any regular repeating dates.

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

              @ctkjedi well, in this particular case the daylight savings adjustment calculation is wrong, so we get off a day

              in 1952, DST starts on April 27th
              in 1992. DST starts on April 5th
              in 2007 DST starts on March 11

              the date/time gave me the right offset but i ‘assumed’ it was same as now…

              if u reset the start year of the entry to 2008, it comes out right…

              next release is on april 1st… don’t know if I can get this change in by then

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                ctkjedi @sdetweil
                last edited by ctkjedi

                @sdetweil goddang daylight saving time! I really hope they follow through this time and get rid of it.

                I’m not really sure where the start date was set though. I only added it to this particular calendar a few days ago and there isn’t a way, that I can see, to edit it.

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

                  @ctkjedi I submitted a fix for this issue, #2483
                  and the fix has been accepted for next release.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    ctkjedi @sdetweil
                    last edited by

                    @sdetweil Awesome. thanks for the follow up!

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      ctkjedi
                      last edited by ctkjedi

                      @sdetweil This may or may not be related, so I’m happy to start a new thread.

                      I have a weekly D&D game, scheduled for every Saturday evening. The ICS reads as

                      BEGIN:VEVENT
                      DTSTART;TZID=America/Los_Angeles:20210319T200000
                      DTEND;TZID=America/Los_Angeles:20210319T230000
                      DTSTAMP:20210316T001016Z
                      UID:**REDACTED**
                      RECURRENCE-ID;TZID=America/Los_Angeles:20210320T200000
                      CREATED:20210213T021153Z
                      DESCRIPTION:**REDACTED**
                      LAST-MODIFIED:20210315T194037Z
                      LOCATION:**REDACTED**
                      SEQUENCE:1
                      STATUS:CONFIRMED
                      SUMMARY:D&D
                      TRANSP:OPAQUE
                      END:VEVENT
                      

                      However, I rescheduled this week’s event for Friday, which reflects correctly on Google Calendar, but now all the entries on the mirror have been re-calculated as being on every Friday going forward.

                      screengrab.png chrome_2021-03-17_10-26-51_LI.jpg

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

                        @ctkjedi can u show the updated ics event with the rule (repeating rule)…

                        this one is not repeating

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        C 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • 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