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.
    • R Offline
      rcberg3
      last edited by

      After a recent update, any module that is displaying a time is showing the UTC time and not my local timezone. The default clock module supports adding a timezone, so I’ve been able to add it there and the time is thus correct. The default calendar module and MMM-OpenWeatherForecast do not support adding timezones and are showing 4 hours off (see screenshot).

      Unsure of what I need to attach to aid in troubleshooting, so please let me know what will help.

      So far, I’ve done some searching and I’ve seen posts related to timezones for the calendar module but they have since been resolved.

      My rpi shows the right time on the taskbar and typing date into the console shows the right date and time.

      I have confirmed that my rpi is setup for the right timezone (America/New York), the right locale en-US.UTF-8

      • Using Raspbian version 10
      • MagicMirror is at 2.25.0

      Image 2023-10-13 at 1.14.08 PM.png

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

        @sdetweil
        I pulled out another Pi, flashed the OS and installed MM using the script you referenced earlier. It’s working perfectly. I’m still completely baffled. I’ve triple checked on the original SD image - it works as expected on the previous version of MM, but not on the current one… Ah well –

        Thank you for taking so much time to look into this, and I am sorry for having wasted so much of your time.

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

          @rcberg3 another user posted similar

          https://forum.magicmirror.builders/topic/18079/default-clock-wrong-after-update

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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