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.

    Moment Timezone / Invalid time value

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    18 Posts 4 Posters 3.3k Views 4 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
      thger1312
      last edited by

      Suddenly after several months of a successful usage of my outlook calendar and the calendar-module a bug. Maybe somebody knows a suitable solution?

      1651431379897-819a41d6-e9e1-446b-be1d-12bc42fb474f-grafik.png
      111e60fb-7003-4cec-91ed-e0487b18bd6c-image.png

      also adding some lines of code didn’t fix the issue https://forum.magicmirror.builders/topic/15803/error-moment-timezone-has-no-data-for-customized-time-zone/6?_=1651432649589&lang=de

      1651433342853-857e2ad0-2824-4ad1-901b-0f48926f937b-image.png

      S 1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @thger1312
        last edited by sdetweil

        @thger1312 see this

        https://forum.magicmirror.builders/topic/16617/error-moment-timezone-has-no-data-for-customized-time-zone/2?_=1650986841061

        if you turn on debug

        add , “DEBUG”

        to the config.js so that it looks like this

        	logLevel: ["INFO", "LOG", "WARN", "ERROR","DEBUG"],
        

        then if using pm2,

        pm2 stop all 
        cd ~/MagicMirror
        npm start  >somefile.txt 2>&1
        

        run til the cal should appear

        ctrl-c on the npm start window

        then edit the somefile.txt and search for error ,
        RangeError

        you should find the troubling cal event…

        the timezone should be America/New York , instead of EST5EDT
        (or whatever your timezone is, from the IANA timezone database https://www.iana.org/time-zones

        neither MM nor the library, nor any of the javascript libraries used to parse the ICS file contents uses the timezone definitions inside the ICS file.

        MM DID change the luxon library in this release which is used on the specific call that fails with that error

        last person I helped, their cal event looked like this

        BEGIN:VEVENT
        DTSTART;TZID=EST5EDT:20220118T080000     <------ these two lines are the trouble
        DTEND;TZID=EST5EDT:20220118T090000   <------
        RRULE:FREQ=MONTHLY;WKST=SU;INTERVAL=1;BYMONTHDAY=18
        DTSTAMP:20220425T012218Z
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • T Offline
          thger1312
          last edited by

          thanks, I found the wrong calendar entry!
          I have inserted a recurring event that seems to have been converted by Outlook as a wrong Customized Time Zone…

          1 Reply Last reply Reply Quote 0
          • T Offline
            thger1312
            last edited by

            40447359-e2a8-40b7-bceb-826bf7bd3088-grafik.png

            S spitzlbergerjS 2 Replies Last reply Reply Quote 0
            • S Away
              sdetweil @thger1312
              last edited by

              @thger1312 can u fix that in outlook?

              is it your local TZ?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              T 1 Reply Last reply Reply Quote 0
              • spitzlbergerjS Offline
                spitzlbergerj Project Sponsor Module Developer @thger1312
                last edited by

                Hi,
                I have now also received this error message. Unfortunately, my mirror is “deeply” integrated so that I cannot connect a keyboard and mouse. So I cannot easily create the log file as described above without removing the mirror from the wall.

                Is it possible to recognise the wrong time zone from the data excerpt you posted here?

                @thger1312 said in Moment Timezone / Invalid time value:

                40447359-e2a8-40b7-bceb-826bf7bd3088-grafik.png

                I couldn’t find anything suspicious at the moment. What have I overlooked?

                Thank you
                Sepp

                Regards
                Josef

                http://www.spitzlberger.de/smartmirror, https://github.com/spitzlbergerj/MMM-TeslaLogger, https://github.com/spitzlbergerj/CaravanPi, https://www.la-gondola-barocca.de

                S 1 Reply Last reply Reply Quote 0
                • S Away
                  sdetweil @spitzlbergerj
                  last edited by

                  @spitzlbergerj you of course enabled SSH on the pi, right??

                  so you can do this from the ssh session

                  you can also download the ics on your PC to examine, search for TZID

                  is the TZID for you local tz?? I may be able to create a fix for this

                  but I don’t want to drag in looking up the broken TZID… already do this for all the MS created non-standard
                  junk.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  spitzlbergerjS 1 Reply Last reply Reply Quote 0
                  • spitzlbergerjS Offline
                    spitzlbergerj Project Sponsor Module Developer @sdetweil
                    last edited by

                    @sdetweil yes, of course I did. I work exclusively via ssh. But the command above seems to try to open a window. Unfortunately, this then breaks off with

                    /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGTRAP
                    

                    i found these tzid

                    "tzid":"W. Europe Standard Time"
                    "tzid":"undefined"
                    "tzid":"Customized Time Zone"
                    

                    The first one is my time zone.
                    I try to identify the outlook calender entries, so that i can probably fix this there. I’m just wondering why this suddenly occurs. So it must be a newly added appointment that is causing the problem. I just can’t remember which appointments I have recently added :worried_face:

                    Regards
                    Josef

                    http://www.spitzlberger.de/smartmirror, https://github.com/spitzlbergerj/MMM-TeslaLogger, https://github.com/spitzlbergerj/CaravanPi, https://www.la-gondola-barocca.de

                    spitzlbergerjS S 2 Replies Last reply Reply Quote 0
                    • spitzlbergerjS Offline
                      spitzlbergerj Project Sponsor Module Developer @spitzlbergerj
                      last edited by

                      … solved for me now …

                      I have just deleted one of my oldest serial appointments. It had one of the above tzid (unfortunately I don’t know which one) and the error messages have disappeared …

                      Regards
                      Josef

                      http://www.spitzlberger.de/smartmirror, https://github.com/spitzlbergerj/MMM-TeslaLogger, https://github.com/spitzlbergerj/CaravanPi, https://www.la-gondola-barocca.de

                      1 Reply Last reply Reply Quote 0
                      • S Away
                        sdetweil @spitzlbergerj
                        last edited by

                        @spitzlbergerj if u looked at the error messages, the UUID is a unique value, set in the ICS file… so you canget that and search for it…

                        my question is

                        do you think the ‘bad’ timezone was YOUR timezone?

                        I could create a fix to do the if undefined, set it to local system tz…

                        i think the latest luxon library barfs now , where it used to return something…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        spitzlbergerjS 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