• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 17.0k 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 Oct 13, 2023, 5:30 PM

    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 Oct 13, 2023, 10:32 PM Reply Quote 0
    • B Offline
      blissb @sdetweil
      last edited by Nov 24, 2023, 8:36 AM

      @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 Nov 24, 2023, 11:48 AM Reply Quote 0
      • S Away
        sdetweil @rcberg3
        last edited by Oct 13, 2023, 10:32 PM

        @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 Nov 19, 2023, 7:33 PM

          @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 Nov 19, 2023, 7:44 PM Reply Quote 0
          • S Away
            sdetweil @blissb
            last edited by Nov 19, 2023, 7:44 PM

            @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 Nov 19, 2023, 8:14 PM Reply Quote 0
            • B Offline
              blissb @sdetweil
              last edited by Nov 19, 2023, 8:14 PM

              @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 Nov 19, 2023, 8:52 PM Reply Quote 0
              • M Offline
                MMRIZE @blissb
                last edited by Nov 19, 2023, 8:44 PM

                @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 Away
                  sdetweil @blissb
                  last edited by Nov 19, 2023, 8:52 PM

                  @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 Nov 19, 2023, 11:00 PM Reply Quote 0
                  • B Offline
                    blissb @sdetweil
                    last edited by Nov 19, 2023, 11:00 PM

                    @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 Nov 19, 2023, 11:06 PM Reply Quote 0
                    • S Away
                      sdetweil @blissb
                      last edited by Nov 19, 2023, 11:06 PM

                      @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 Nov 19, 2023, 11:20 PM Reply Quote 0
                      • B Offline
                        blissb @blissb
                        last edited by Nov 19, 2023, 11:13 PM

                        @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
                        • 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