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 28.5k 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 @sdetweil
      last edited by

      @sdetweil

      I renamed the MagicMirror directory, and re-installed using the install script – iirc that’s what I used initially.

      Sadly, no change.

      Giving up for now – may poke at it more tomorrow. Thanks again.

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

        @blissb would you be willing to share your config.js, send to me as a text file

        same userid as here, at gmail

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil

          I think I can do that. I’ll send it after work.

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

            @sdetweil
            You’ve probably seen it by now - but I’ve sent you the config.js.

            Also, I saw some info about times being correct when viewed on a remote browser. I’ve tried setting the external browser in my “mm.sh” script to both midori and firefox (both are installed). Neither makes a difference.

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

              @sdetweil

              If this is a red-herring / rabbit-hole, I apologize in advance. I haven’t done any javascript in 10+ years… all this is sorcery to me. :beaming_face_with_smiling_eyes:

              I configured it to allow remote access via a browser on my desktop machine. On the pi running the newer (wrong time) version of MM, the browser displays the correct time, while the pi displays the wrong time. That’s kind of fascinating to me… clearly the browser is calculating the times on its own.

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

                @blissb yes, someone else reported similar issue

                the Midori/Firefox only work if the start line is changed in package.json

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @blissb would you be willing to send me one of the extracted ics files

                  curl -sL the cal_url >somefile.ics.txt
                  

                  because those are the ones causing the shift problem…
                  I want to see how the ICS is coded

                  same email ias the config

                  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 sent the ics file – forgot to rename it with .txt. Let me know if I need to resend.

                    B

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

                      @blissb I have it. need to test.

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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

                        @blissb i can’t recreate it on any system…

                        if you’ve got time, could you make another sde card and reinstall mm using my script?
                        and use your config.js

                        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 Just wanted to let you know, I’m working on this between other tasks. I’m also prepping for the Thanksgiving holiday tomorrow, so if I don’t get it finished tonight, it may be Friday before I get back with you.

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

                            @blissb no rush. when/if you have time

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

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

                              @sdetweil
                              I’m having some really odd problems with the raspbian install. Starting to wonder about the hardware. It’s a RPi 2B that’s been rock solid for years, but for whatever reason it won’t boot from any newly flashed SD card - though it boots fine from the original.

                              I have another one in a box somewhere. I’ll pull it out and give it a try – I’d hate to think I’ve wasted your time over flakey hardware – but the fact that the other one is working as expected with the previous MM version makes me think (hope!) that’s not the case.

                              I’ll definitely keep you posted!

                              1 Reply 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 @blissb
                                  last edited by

                                  @blissb not wasted time, interesting problem.
                                  glad we’ve found something that resolves it.

                                  thank for your feedback

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  J 1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    jasonumd @sdetweil
                                    last edited by

                                    @sdetweil I’m chiming in a bit late here. Has there been any more widespread report of calendar times being off? Mine worked flawless for years then the past few months times are off, presumably UTC as mentioned in this thread.

                                    I’m having a hard time seeing what the actual solution was?

                                    Thanks so much in advance!

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

                                      @jasonumd so far, every time events have been off, the system timezone has not been set correctly…

                                      note that a docker container is its own system and needs ITS timezone set too…

                                      what changed since it worked to now?

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      J 2 Replies Last reply Reply Quote 0
                                      • J Offline
                                        jasonumd @sdetweil
                                        last edited by

                                        @sdetweil I changed absolutely nothing. Just applied regular MM updates. I will investigate those two settings ASAP.

                                        N 1 Reply Last reply Reply Quote 0
                                        • N Offline
                                          n1sni @jasonumd
                                          last edited by

                                          @jasonumd Same - I have been running this for years… and just did “git pull” and “npm update” in two separate module directories and now I’m UTC. “date” from the console shows the correct date/time.

                                          Raspberry pi…
                                          Linux mm 5.15.90-v7+ #1623 SMP Mon Jan 30 14:59:14 GMT 2023 armv7l GNU/Linux

                                          Running the MagicMirror docker.

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

                                            @n1sni edit the docker container parms to add

                                            environment:
                                                   TZ:your_timezone
                                            

                                            else it defaults to UTC

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            N 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 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