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.

    Calendar - only all day events showing - moment timezone issue

    Scheduled Pinned Locked Moved Troubleshooting
    11 Posts 3 Posters 2.6k 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.
    • S Offline
      sdetweil @MagicInMe
      last edited by

      @magicinme I don’t know. I hope soon so we can include it in the next release on April 1st

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        MagicInMe @sdetweil
        last edited by

        @sdetweil perfect, thanks a bunch!

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

          @magicinme the fix did NOT make 2.15, as the repo published the fixes JUST last night

          if u want to test/run with the new code do

          cd ~/MagicMirror
          npm install node-ical
          

          restart MM

          same for 2.14 or 2.15

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            MagicInMe @sdetweil
            last edited by

            @sdetweil Thank you! I am running it now, I’m still getting

            [12.04.2021 08:39.20.358] [ERROR] Moment Timezone has no data for Customized Time Zone. See http://momentjs.com/timezone/docs/#/data-loading/.
            

            but it appears as though there are fewer errors and the module does seem to be displaying my events. Perhaps I have some buggy iCal events in there. If I get a chance to dive in more, I’ll see what I can update.

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

              @magicinme can u send me your ics file. I thought we put fixes in 2.15 for this

              my email is the same user ID at gmail

              oh, wait, the fixes are in node-ical

              do

              cd ~/MagicMirror
              npm install node-ical
              

              the restart mm

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • M Offline
                MagicInMe
                last edited by

                @sdetweil
                It appears as though the issue arises when the calendar has custom (non-standard) timezones. node-ical parses the file properly however there is no code to digest the parsed VTIMEZONE entries and apply them to referencing events. Looking at this VTIMEZONE entry, it seems rather hack-y so it probably is not worth it to parse. I notice that all of the weird entries are originate from an iPhone.

                Here’s an example ical file of an offending text:

                BEGIN:VCALENDAR
                PRODID:-//Microsoft Corporation//Outlook 16.0 MIMEDIR//EN
                VERSION:2.0
                METHOD:PUBLISH
                X-MS-OLK-FORCEINSPECTOROPEN:TRUE
                BEGIN:VTIMEZONE
                TZID:Customized Time Zone
                BEGIN:STANDARD
                DTSTART:16011104T020000
                RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=11
                TZOFFSETFROM:-0400
                TZOFFSETTO:-0500
                END:STANDARD
                BEGIN:DAYLIGHT
                DTSTART:16010311T020000
                RRULE:FREQ=YEARLY;BYDAY=2SU;BYMONTH=3
                TZOFFSETFROM:-0500
                TZOFFSETTO:-0400
                END:DAYLIGHT
                END:VTIMEZONE
                BEGIN:VEVENT
                CLASS:PUBLIC
                CREATED:20210906T061657Z
                DTEND;TZID="Customized Time Zone":20210605T110000
                DTSTAMP:20210906T061658Z
                DTSTART;TZID="Customized Time Zone":20210605T100000
                LAST-MODIFIED:20210906T061657Z
                PRIORITY:5
                SEQUENCE:0
                SUMMARY;LANGUAGE=en-us:Top secret stuff
                TRANSP:OPAQUE
                UID:04000000[.....]
                X-MICROSOFT-CDO-BUSYSTATUS:BUSY
                X-MICROSOFT-CDO-IMPORTANCE:1
                END:VEVENT
                END:VCALENDAR
                
                S 2 Replies Last reply Reply Quote 0
                • S Offline
                  sdetweil @MagicInMe
                  last edited by

                  @magicinme none of the libraries digest the tz definitions. mm doesn’t either.

                  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 @MagicInMe
                    last edited by sdetweil

                    @magicinme those are Microsoft-isms.

                    I put code in node-ical and mm to handle, but the definitions aren’t parsed.

                    the supporting nodejs libs don’t understand custom timezones, so I convert to iana tz.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    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