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.

    MM clock reverted to UTC

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    8 Posts 4 Posters 95 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.
    • S Online
      smegbadger
      last edited by

      Hi

      After a recent reboot (to update MMM-CalendarExt3Agenda and add some more dates to MMM-MyGarbage) I’ve noticed that the clock and agenda modules have reverted to UTC (should be BST right now).

      A quick look shows the docker container is now running with UTC (although the RPi is correctly on BST):

      magicm@magicmirror:~ $ date
      Sun  3 May 09:02:24 BST 2026
      magicm@magicmirror:~ $ docker exec -it mm bash
      node@magicmirror:/opt/magic_mirror$ date
      Sun May  3 08:02:36 AM UTC 2026
      

      I’ve not set the timezone (or date format) explicitly for the Docker before. Has a new release of Docker changed that and, if so, how do I pass that setting through?

      Many thanks

      Steve

      karsten13K 1 Reply Last reply Reply Quote 0
      • karsten13K Offline
        karsten13 @smegbadger
        last edited by

        @smegbadger

        The external url for getting the TZ doesn’t work anymore, I had to switch to another one. Meanwhile this did not work but I pushed new images some minutes ago which should fix this. So please pull the new image and let me know if it works.

        S 1 Reply Last reply Reply Quote 0
        • S Online
          smegbadger @karsten13
          last edited by

          @karsten13

          I did a docker compose pull in the opt/mm/run directory and that was successful

          magicm@magicmirror:/opt/mm/run $ docker compose pull
          [+] Pulling 17/17
           ✔ labwc Pulled                                                                                                    0.9s
           ✔ magicmirror Pulled                                                                                             81.9s
             ✔ 76b7b92b680d Already exists                                                                                   0.0s
             ✔ 5ee1ed488d07 Already exists                                                                                   0.0s
             ✔ 3154f7f9972b Already exists                                                                                   0.0s
             ✔ 73114b557eb0 Already exists                                                                                   0.0s
             ✔ 563f46f75d49 Already exists                                                                                   0.0s
             ✔ ad0a7f3409e8 Already exists                                                                                   0.0s
             ✔ 5a172ff577b3 Already exists                                                                                   0.0s
             ✔ 39715dbbbd4f Already exists                                                                                   0.0s
             ✔ 189de6907d33 Already exists                                                                                   0.0s
             ✔ e8dbedaf8b5d Pull complete                                                                                    0.4s
             ✔ 3c77d19aac28 Pull complete                                                                                    0.5s
             ✔ 8d20b36a9778 Pull complete                                                                                    0.5s
             ✔ 1d705635a0a9 Pull complete                                                                                   51.6s
             ✔ 5c309722c0df Pull complete                                                                                   80.1s
             ✔ 4f4fb700ef54 Pull complete                                                                                   80.2s
          

          but the clock and agenda are still on UTC. The Docker logs state this early on
          [INFO] ***WARNING*** could not set timezone, please set TZ variable in compose.yaml, see https://khassel.gitlab.io/magicmirror/configuration/#timezone

          UPDATE

          Before I could send this another day passed and now they are correct! Docker is still on UTC but the Clock and Agenda are correctly showing times on BST!

          magicm@magicmirror:~ $ date
          Tue  5 May 12:15:21 BST 2026
          magicm@magicmirror:~ $ docker exec -it mm bash
          node@magicmirror:/opt/magic_mirror$ date
          Tue May  5 11:15:28 AM UTC 2026
          
          mumblebajM karsten13K 2 Replies Last reply Reply Quote 0
          • S Online
            smegbadger
            last edited by

            There is a git error in the Docker logs for MMM-CalendarExt3Agenda, though

            [2026-05-05 12:14:05.460] [ERROR] [updatenotification] Failed to get git revisions for MMM-CalendarExt3Agenda: Error: Command failed: git rev-list --ancestry-path --count 72816f2..ed664f3  main
            fatal: ambiguous argument '72816f2..ed664f3  main': unknown revision or path not in the working tree.
            Use '--' to separate paths from revisions, like this:
            'git <command> [<revision>...] -- [<file>...]'
            
            S S 2 Replies Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @smegbadger
              last edited by

              @smegbadger yes, we have a fix for that. It’s from the updatenotification module.

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • mumblebajM Offline
                mumblebaj Module Developer @smegbadger
                last edited by

                @smegbadger Not sure if this would work for you but you can set this in you docker-compose.yml under volumes:
                - /etc/timezone:/etc/timezone:ro this should take the timezone from the host.

                Check out my modules at: https://github.com/mumblebaj?tab=repositories
                Check my blog-post: https://mumblebaj.xyz/
                Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                1 Reply Last reply Reply Quote 0
                • karsten13K Offline
                  karsten13 @smegbadger
                  last edited by

                  @smegbadger said:

                  Before I could send this another day passed and now they are correct! Docker is still on UTC but the Clock and Agenda are correctly showing times on BST!

                  Thanks for the feedback. This is expected behavior. If you really need the timezone for other stuff in the container you can set it by adding this in the compose.yaml:

                      environment:
                        - TZ=Europe/Berlin
                  
                  1 Reply Last reply Reply Quote 0
                  • S Online
                    smegbadger @smegbadger
                    last edited by

                    @sdetweil What’s the procedure to update that module?

                    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 / 1
                    • 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