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.

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

    Scheduled Pinned Locked Moved Solved Troubleshooting
    moment timezone calendar
    8 Posts 2 Posters 1.7k 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.
    • K Offline
      Klassieker
      last edited by

      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 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @Klassieker
        last edited by

        @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

        How to add modules

        learning how to use browser developers window for css changes

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          Klassieker @sdetweil
          last edited by 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 Reply Last reply Reply Quote 0
          • K Offline
            Klassieker @Klassieker
            last edited by

            @klassieker
            Current timezone in the agenda.

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

            S 1 Reply Last reply Reply Quote 0
            • S Away
              sdetweil @Klassieker
              last edited by 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

              How to add modules

              learning how to use browser developers window for css changes

              K 1 Reply Last reply Reply Quote 0
              • K Offline
                Klassieker @sdetweil
                last edited by

                @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 Reply Last reply Reply Quote 0
                • S Away
                  sdetweil @Klassieker
                  last edited by

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

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  K 1 Reply Last reply Reply Quote 0
                  • K Offline
                    Klassieker @sdetweil
                    last edited by

                    @sdetweil Thanks, I will close this topic as solved

                    1 Reply Last reply Reply Quote 0
                    • spitzlbergerjS spitzlbergerj referenced this topic on
                    • T thger1312 referenced this topic on
                    • 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