Read the statement by Michael Teeuw here.
MM clock reverted to UTC
-
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 2026I’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
-
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.
-
I did a
docker compose pullin theopt/mm/rundirectory and that was successfulmagicm@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.2sbut 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/#timezoneUPDATE
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 -
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>...]' -
@smegbadger yes, we have a fix for that. It’s from the updatenotification module.
-
@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:rothis should take the timezone from the host. -
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 -
@sdetweil What’s the procedure to update that module?
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