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.

    MagicMirror using the wrong time

    Scheduled Pinned Locked Moved Solved Troubleshooting
    54 Posts 6 Posters 22.4k Views 6 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.
    • B Offline
      blissb @rcberg3
      last edited by

      @rcberg3 I’m having exactly the same issue. Also on Raspbian 10 and MM 2.25.0. I was able to set the timeZone in the clock module, but the calendar is still off. Has there been any further info on this? Is there another posting I should be looking at?

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

        @blissb calendar uses the system timezone
        set in the preferences, from the desktop

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          blissb @sdetweil
          last edited by

          @sdetweil Thanks for the quick reply - but what you are saying isn’t what I’m seeing… Please let me know what I’m missing. I’d be really grateful!

          Time and timezone are set correctly on the two RPi systems. Time / date are showing correctly on the Raspbian desktop, and in the MM Clock module (after setting the timezone option). So, clearly, I’m missing something. Raspi-config has the correct timezone (America/New_York)

          desktop.png

          Clock module is correct after adding timeZone to config.js, but not the calendar or weather:

          MM-display.png

          S 1 Reply Last reply Reply Quote 0
          • M Offline
            MMRIZE @blissb
            last edited by

            @blissb
            Maybe your RPI is not synchronized with time server. RPI (not 5) has not RTC feature, so it should be synced it’s time sometimes.

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

              @blissb can you add ,“DEBUG”
              to the log level in config.js

              then do
              from on the terminal window do

              cd ~/MagicMirror
              npm start > somefile.txt
              

              wait til the calendar is up, then Ctrl+q to stop mm

              then examine the somefile.txt

              search for ‘initial’

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              B 1 Reply Last reply Reply Quote 0
              • B Offline
                blissb @sdetweil
                last edited by

                @sdetweil
                I replied to this, but then received a notice that my submission was rejected. I don’t know why.

                The debug file has over 200 entries referencing “initial tz =” with both “America/New_York” and “America/Lima.” I do not know why Lima would be anywhere in my configs, but I believe it’s the same time as New York, so I’m not sure that’s instructive.

                I will also add there seems to be an “initial tz=” entry each followed immediately by “corrected tz=” with the same value.

                S B 2 Replies Last reply Reply Quote 0
                • S Offline
                  sdetweil @blissb
                  last edited by

                  @blissb not the same all the time

                  Screenshot_20231119_165623_Google.jpg

                  could you pull a complete section…
                  thru “saving event”
                  or send the file to me same userid as here at Gmail.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  B 1 Reply Last reply Reply Quote 0
                  • B Offline
                    blissb @blissb
                    last edited by

                    @blissb
                    Again, I’m not seeing the same thing you are… weird.
                    Screenshot_20231119_181218.png

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      blissb @sdetweil
                      last edited by

                      @sdetweil
                      I think this is what you were asking for?
                      [19.11.2023 17:30.43.315] [DEBUG] Event:
                      {“type”:“VEVENT”,“params”:[],“created”:“2023-11-18T21:17:38.000Z”,“lastmodified”:“2023-11-19T03:21:20.000Z”,“dtstamp”:“2023-11-19T03:21:20.000Z”,“uid”:“cade6f8b-b662-4ad6-bb41-6cdf47266ba9”,“summary”:“Gryphon meds”,“status”:“CONFIRMED”,“rrule”:{“_cache”:{“all”:false,“before”:[],“after”:[],“between”:[]},“origOptions”:{“tzid”:“America/New_York”,“dtstart”:“2023-11-18T22:00:00.000Z”,“freq”:3,“until”:“2023-12-03T05:00:00.000Z”},“options”:{“freq”:3,“dtstart”:“2023-11-18T22:00:00.000Z”,“interval”:1,“wkst”:0,“count”:null,“until”:“2023-12-03T05:00:00.000Z”,“tzid”:“America/New_York”,“bysetpos”:null,“bymonth”:null,“bymonthday”:[],“bynmonthday”:[],“byyearday”:null,“byweekno”:null,“byweekday”:null,“bynweekday”:null,“byhour”:[22],“byminute”:[0],“bysecond”:[0],“byeaster”:null}},“MOZ-LASTACK”:“20231119T032120Z”,“start”:“2023-11-18T22:00:00.000Z”,“datetype”:“date-time”,“end”:“2023-11-18T23:00:00.000Z”,“sequence”:“2”,“MOZ-GENERATION”:“1”,“ec75586d-206f-4821-9a50-81af9612d507”:{“type”:“VALARM”,“params”:[],“action”:“DISPLAY”,“trigger”:“PT0S”,“description”:“Default Mozilla Description”,“end”:“2023-11-20T22:30:36.369Z”}}
                      [19.11.2023 17:30.43.317] [DEBUG] start: Sat Nov 18 2023 17:00:00 GMT-0500 (GMT-05:00)
                      [19.11.2023 17:30.43.319] [DEBUG] end:: Sat Nov 18 2023 18:00:00 GMT-0500 (GMT-05:00)
                      [19.11.2023 17:30.43.320] [DEBUG] duration: 3600000
                      [19.11.2023 17:30.43.322] [DEBUG] title: Gryphon meds
                      [19.11.2023 17:30.43.346] [DEBUG] Search for recurring events between: Sun Nov 19 2023 17:30:43 GMT-0500 (GMT-05:00) and Sun Nov 17 2024 23:59:59 GMT-0500 (GMT-05:00)
                      [19.11.2023 17:30.43.398] [DEBUG] Title: Gryphon meds, with dates: [“2023-11-20T22:00:00.000Z”,“2023-11-21T22:00:00.000Z”,“2023-11-22T22:00:00.000Z”,“2023-11-23T22:00:00.000Z”,“2023-11-24T22:00:00.000Z”,“2023-11-25T22:00:00.000Z”,“2023-11-26T22:00:00.000Z”,“2023-11-27T22:00:00.000Z”,“2023-11-28T22:00:00.000Z”,“2023-11-29T22:00:00.000Z”,“2023-11-30T22:00:00.000Z”,“2023-12-01T22:00:00.000Z”,“2023-12-02T22:00:00.000Z”]
                      [19.11.2023 17:30.43.400] [DEBUG] event.recurrences: undefined
                      [19.11.2023 17:30.43.402] [DEBUG] recurring date is Mon Nov 20 2023 17:00:00 GMT-0500 (GMT-05:00) offset is 300
                      [19.11.2023 17:30.43.405] [DEBUG] recurring date is Mon Nov 20 2023 17:00:00 GMT-0500 (GMT-05:00) offset is 5 Hour is 17
                      [19.11.2023 17:30.43.407] [DEBUG] Corrected startDate: Mon Nov 20 2023 17:00:00 GMT-0500 (GMT-05:00)
                      [19.11.2023 17:30.43.408] [DEBUG] initial tz=America/New_York
                      [19.11.2023 17:30.43.409] [DEBUG] corrected tz=America/New_York
                      [19.11.2023 17:30.43.411] [DEBUG] start date/time=Sat Nov 18 2023 17:00:00 GMT-0500 (GMT-05:00)
                      [19.11.2023 17:30.43.413] [DEBUG] start offset=-300
                      [19.11.2023 17:30.43.415] [DEBUG] start date/time w tz =Sat Nov 18 2023 17:00:00 GMT-0500 (GMT-05:00)
                      [19.11.2023 17:30.43.418] [DEBUG] event date=Mon Nov 20 2023 17:00:00 GMT-0500 (GMT-05:00)
                      [19.11.2023 17:30.43.419] [DEBUG] event offset=-300 hour=17 event date=Mon Nov 20 2023 17:00:00 GMT-0500 (GMT-05:00)
                      [19.11.2023 17:30.43.421] [DEBUG] adjustHours=0
                      [19.11.2023 17:30.43.422] [DEBUG] duration: 3600000
                      [19.11.2023 17:30.43.428] [DEBUG] saving event: false

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

                        @blissb cool, now find one with Lima

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        B 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 1 / 6
                        • 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