MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. asward2
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Default Calendar lists events one day early

      @sdetweil Thanks for the quick reply!

      I had previously verified that all ‘levels’ of the mm are using the correct date and time, and display their timezone properly. The pi, the container, and the display pi were all set to PDT and the time/date was correct. I verified this with the ‘date’ command at a bash terminal.

      The container was syncing to the rpi hosts time by mapping the localtime as a volume.

      version: '3'
      services:
        magicmirror:
          container_name: magicmirror
          image: mm2022:latest
          restart: always
          volumes:
            - /etc/localtime:/etc/localtime:ro
            - ./magic_mirror/config:/opt/magic_mirror/config
            - ./magic_mirror/modules:/opt/magic_mirror/modules
          ports:
            - 8888:8080
      

      From your comment I decided to set the TZ environment variable in my container as well.

      services:
        magicmirror:
          container_name: magicmirror
          image: mm2022:latest
          environment:
              TZ: America/Los_Angeles
          restart: always
          volumes:
            - /etc/localtime:/etc/localtime:ro
            - ./magic_mirror/config:/opt/magic_mirror/config
            - ./magic_mirror/modules:/opt/magic_mirror/modules
          ports:
            - 8888:8080
      

      This fixed my issue, and all day events now appear on the correct date.

      Thanks again!

      posted in Troubleshooting
      A
      asward2
    • 1 / 1