• 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 Calendar lists events one day early

Scheduled Pinned Locked Moved Solved Troubleshooting
4 Posts 3 Posters 756 Views 3 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.
  • A Offline
    asward2
    last edited by Mar 23, 2022, 2:56 AM

    I have a public google calendar using the iCal url. This has been working for probably 3 years at this point, no issues. I’ve recently noticed (wife says it’s been a long time, but she didn’t say anything :man_shrugging: ) that ‘all day’ calendar events shown on MM are shown as starting one day early - for example a birthday that is on the 23rd is shown on MM as the 22nd. However, an event with a fixed duration is listed on the correct date.

    I’m in the pacific time zone. The Pi is configured correctly. MM is running in a container, which shares the time config.

    This seems to have occurred with at least one other user. I would have responded to his thread but it’s coming up on it’s second birthday with no responses :-)

    https://forum.magicmirror.builders/topic/13230/calendar-2hours-for-all-day-event?_=1648003429696

    S 1 Reply Last reply Mar 23, 2022, 3:15 AM Reply Quote 0
    • A Offline
      asward2 @sdetweil
      last edited by Mar 23, 2022, 3:25 PM

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

      S 1 Reply Last reply Mar 23, 2022, 3:26 PM Reply Quote 1
      • S Offline
        sdetweil @asward2
        last edited by sdetweil Mar 23, 2022, 3:31 AM Mar 23, 2022, 3:15 AM

        @asward2 what MM version are you running?

        cd MagicMirror
        grep version package.json

        show me one of the events from the ICS file
        to get the ics file do

        curl -sL ical_url >somefile.txt
        

        edit somefile.txt

        locate the vevent

        BEGIN:VEVENT
        .
        .
        .
        END:VEVENT
        u can change any of the text that shows personal info, please don’t edit the dates

        u can direct message me here or you can send an email
        to my same userid on gmail

        I worked a while back with another user that had a similar problem (he was in Hawaii)…
        turns out his system timezone was set to east coast… oops…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        A 1 Reply Last reply Mar 23, 2022, 3:25 PM Reply Quote 0
        • A Offline
          asward2 @sdetweil
          last edited by Mar 23, 2022, 3:25 PM

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

          S 1 Reply Last reply Mar 23, 2022, 3:26 PM Reply Quote 1
          • S Offline
            sdetweil @asward2
            last edited by Mar 23, 2022, 3:26 PM

            @asward2 awesome

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              4/4
              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