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.

    Default Clock wrong after update

    Scheduled Pinned Locked Moved Solved Troubleshooting
    26 Posts 4 Posters 5.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.
    • D Offline
      drstang
      last edited by

      Hi ,

      After the newest MM update, the clock module is displaying UTC time, despite my RPi config set to EST.

      Interestingly, when I head to my MMs IP address from a separate computer, the clock is correct.

      Any ideas? Thanks!

      S 1 Reply Last reply Reply Quote 0
      • BKeyportB Offline
        BKeyport Module Developer @drstang
        last edited by

        @drstang does setting the timezone config option adjust it ?

        https://docs.magicmirror.builders/modules/clock.html#configuration-options

        The "E" in "Javascript" stands for "Easy"

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

          @drstang another user had a similar problem with the calendar…
          rebuilt with a different pi and the problem went away…

          lets try this

          pm2 stop all  (or stop MM if you didn't use pm2) 
          cd ~
          rm -rf .config/Electron
          pm2 start all
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            drstang @sdetweil
            last edited by

            @sdetweil Thanks for the reply. Unfortunately - no luck. Still displaying UTC instead of EST.

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

              @drstang thx… and you are certain the SYSTEM timezone is set to EST

              i can’t upload a pic of the config page on the pi… weird

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                drstang @sdetweil
                last edited by

                @sdetweil Yep - did it several times to make sure!

                And the Mirror will show EST when I access it via a web browser!

                BKeyportB 1 Reply Last reply Reply Quote 0
                • BKeyportB Offline
                  BKeyport Module Developer @drstang
                  last edited by

                  @drstang does setting the timezone config option adjust it ?

                  https://docs.magicmirror.builders/modules/clock.html#configuration-options

                  The "E" in "Javascript" stands for "Easy"

                  D 1 Reply Last reply Reply Quote 0
                  • D Offline
                    drstang @BKeyport
                    last edited by drstang

                    @BKeyport thanks but unfortunately that does not work either - it results in the clock module not even loading (unless there was something else I should have adjusted)…

                    EDIT: I realized I changed the modules config initially, which didn’t work. But I changed the main config (duh - reading is key) and added the config/timezone line, which worked!! thank you!

                    BKeyportB S 2 Replies Last reply Reply Quote 0
                    • BKeyportB Offline
                      BKeyport Module Developer @drstang
                      last edited by

                      @drstang At least you can override it for now…

                      The "E" in "Javascript" stands for "Easy"

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        Richard238
                        last edited by

                        Just updated my MM, clock is showing 18:13 when it’s 11:54…

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

                          @drstang I don’t understand this, the code does

                          		if (this.config.timezone) {
                          			now.tz(this.config.timezone);		
                          

                          which means it only uses its own config values, not the global config.

                          when I set it like this

                          		{
                          			module: "clock",
                          			position: "top_left",
                          			config:{
                          				displaySeconds:false,
                          				timezone:"UTC"
                          			}
                          		},
                          

                          it correctly changed the displayed time from 08 (us central time) to 13

                          if I set it like this

                          	timeFormat: 24,
                          	units: "metric",
                          	timezone:"UTC",
                          	modules: [
                          

                          it did not change the displayed time (as expected)

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

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