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

Default Clock wrong after update

Scheduled Pinned Locked Moved Solved Troubleshooting
26 Posts 4 Posters 5.2k 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 Oct 12, 2023, 10:04 PM

    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 Oct 12, 2023, 10:11 PM Reply Quote 0
    • B Offline
      BKeyport Module Developer @drstang
      last edited by Oct 12, 2023, 11:10 PM

      @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 Oct 12, 2023, 11:16 PM Reply Quote 0
      • S Away
        sdetweil @drstang
        last edited by sdetweil Oct 12, 2023, 10:12 PM Oct 12, 2023, 10:11 PM

        @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 Oct 12, 2023, 10:14 PM Reply Quote 0
        • D Offline
          drstang @sdetweil
          last edited by Oct 12, 2023, 10:14 PM

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

          S 1 Reply Last reply Oct 12, 2023, 10:18 PM Reply Quote 0
          • S Away
            sdetweil @drstang
            last edited by sdetweil Oct 12, 2023, 10:25 PM Oct 12, 2023, 10:18 PM

            @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 Oct 12, 2023, 10:39 PM Reply Quote 0
            • D Offline
              drstang @sdetweil
              last edited by Oct 12, 2023, 10:39 PM

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

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

              B 1 Reply Last reply Oct 12, 2023, 11:10 PM Reply Quote 0
              • B Offline
                BKeyport Module Developer @drstang
                last edited by Oct 12, 2023, 11:10 PM

                @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 Oct 12, 2023, 11:16 PM Reply Quote 0
                • D Offline
                  drstang @BKeyport
                  last edited by drstang Oct 12, 2023, 11:41 PM Oct 12, 2023, 11:16 PM

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

                  B S 2 Replies Last reply Oct 13, 2023, 4:39 AM Reply Quote 0
                  • B Offline
                    BKeyport Module Developer @drstang
                    last edited by Oct 13, 2023, 4:39 AM

                    @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 Oct 13, 2023, 10:54 AM

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

                      1 Reply Last reply Reply Quote 0
                      • S Away
                        sdetweil @drstang
                        last edited by sdetweil Oct 13, 2023, 1:29 PM Oct 13, 2023, 1:21 PM

                        @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

                        B 1 Reply Last reply Oct 13, 2023, 6:04 PM Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        1 / 3
                        • First post
                          1/26
                          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