MagicMirror Forum

    • Registrieren
    • Anmelden
    • Suche
    • Aktuell
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    GELÖST [ERROR] Moment Timezone has no data for Customized Time Zone

    Troubleshooting
    moment timezone calendar
    2
    8
    198
    Lade mehr Beiträge
    • Älteste zuerst
    • Neuste zuerst
    • Meiste Stimmen
    Antworten
    • In einem neuen Thema antworten
    Anmelden zum Antworten
    Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
    • K
      Klassieker zuletzt editiert von

      Hello all,
      I just upgraded to version 2.17.1 and see this error. It is in the deault app Calendar.
      What can I change to stop this error?
      Thanks in advance.

      S 1 Antwort Letzte Antwort Antworten Zitieren 0
      • S
        sdetweil @Klassieker zuletzt editiert von

        @klassieker 2.15 and above have special code to work around that problem… (I know , I added it) but this is for MS 365 cals.

        can u show me a cal entry from the ics file (use the url to download the file, and then u can edit it, as it is just text)

        a cal event starts with BEGIN:VEVENT
        and ends with END:VEVENT

        Sam

        Create a working config
        How to add modules

        K 1 Antwort Letzte Antwort Antworten Zitieren 0
        • K
          Klassieker @sdetweil zuletzt editiert von sdetweil

          @sdetweil
          Hi Sam, I use a special agenda from office 365 for the calender module
          Here is the information. Maybe I can change something in this agenda instead of the special code as work around?

          BEGIN:VEVENT
          UID: ....
          SUMMARY:Verpakkingen
          DTSTART;TZID=Customized Time Zone:20210107T080000
          DTEND;TZID=Customized Time Zone:20210107T090000
          CLASS:PUBLIC
          PRIORITY:5
          DTSTAMP:20211030T090840Z
          TRANSP:OPAQUE
          STATUS:CONFIRMED
          SEQUENCE:0
          LOCATION:
          X-MICROSOFT-CDO-APPT-SEQUENCE:0
          X-MICROSOFT-CDO-BUSYSTATUS:BUSY
          X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
          X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
          X-MICROSOFT-CDO-IMPORTANCE:1
          X-MICROSOFT-CDO-INSTTYPE:0
          X-MICROSOFT-DONOTFORWARDMEETING:FALSE
          X-MICROSOFT-DISALLOW-COUNTER:FALSE
          END:VEVENT
          

          Thanks in advance

          K 1 Antwort Letzte Antwort Antworten Zitieren 0
          • K
            Klassieker @Klassieker zuletzt editiert von

            @klassieker
            Current timezone in the agenda.

            d26a02b1-6cac-4c5a-b772-92b18825366c-image.png

            S 1 Antwort Letzte Antwort Antworten Zitieren 0
            • S
              sdetweil @Klassieker zuletzt editiert von sdetweil

              @klassieker ok, its just noise, doesn’t hurt anything…

              BUT if u want to test getting rid of the message do this

              edit ~/MagicMirror/modules/default/calendar/calendarutils.js

              	if (event.start.tz.includes(" ")) {  // this is line 37 , not changed
              	        let tz = null                // first replacement line
              		// if the tz is the MS customized TZ
              		if(event.start.tz ==='Customized Time Zone')
              			// use the locally set tz
              			tz=moment.tz.guess()
              		else
              			// use the lookup table to get the IANA name as moment and date don't know MS timezones
              			tz = CalendarUtils.getIanaTZFromMS(event.start.tz);  // last replacement line
              			Log.debug("corrected TZ=" + tz);      // line not to be changed
              

              replace the lines BETWEEN line 37 and the last line (also not changed)
              with first replacement line thru last replacement line
              so it looks like that

              Sam

              Create a working config
              How to add modules

              K 1 Antwort Letzte Antwort Antworten Zitieren 0
              • K
                Klassieker @sdetweil zuletzt editiert von

                @sdetweil
                Hi Sam,
                I changed the rows and it works, no more noise.
                But what if the module is updated bu the developer?
                Thank you very much,

                S 1 Antwort Letzte Antwort Antworten Zitieren 0
                • S
                  sdetweil @Klassieker zuletzt editiert von

                  @klassieker you were testing… I will submit a change request … next release is January 1.

                  Sam

                  Create a working config
                  How to add modules

                  K 1 Antwort Letzte Antwort Antworten Zitieren 0
                  • K
                    Klassieker @sdetweil zuletzt editiert von

                    @sdetweil Thanks, I will close this topic as solved

                    1 Antwort Letzte Antwort Antworten Zitieren 0
                    • Referenziert von  spitzlbergerj spitzlbergerj 
                    • Referenziert von  T thger1312 
                    • Referenziert von  T thger1312 
                    • 1 / 1
                    • Erster Beitrag
                      Letzter Beitrag
                    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