• 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.

Different times in MM and google calendar - MMM-CalendarExt2

Scheduled Pinned Locked Moved Unsolved Troubleshooting
7 Posts 3 Posters 2.6k 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.
  • S Offline
    sdetweil @alphanet
    last edited by sdetweil Jul 12, 2022, 12:24 AM Jul 12, 2022, 12:24 AM

    @alphanet what timezone is your pi set to?

    and what timezone are the events?

    if u download the ics file and edit it w a text editor, then u can see the event timezones ( or not, in which case they default to the system timezone)

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    A 1 Reply Last reply Jul 14, 2022, 4:00 PM Reply Quote 0
    • M Offline
      MMRIZE @alphanet
      last edited by MMRIZE Jul 12, 2022, 7:36 AM Jul 12, 2022, 7:36 AM

      @alphanet
      The symptom could happen from various reasons.

      Where the URL of the calendar comes from? Directly from Google calendar? or another source? If the calendar would be imported from another source and the original event might lay in a different timezone, it could happen.

      Or simply, your events have a wrong(or unparsable) timezone format.

      Anyway, you can adjust the timezone of events by force with forceLocalTZ:true on calendar section (https://github.com/MMM-CalendarExt2/MMM-CalendarExt2/blob/main/docs/Configuration/Calendar.md). It will override timezone information to your local timezone by force.

      A 1 Reply Last reply Jul 14, 2022, 4:25 PM Reply Quote 0
      • A Offline
        alphanet @sdetweil
        last edited by alphanet Jul 14, 2022, 4:28 PM Jul 14, 2022, 4:00 PM

        @sdetweil

        Thank you very much sdetweil for your help.

        In the terminal , the timezone is set to UTC.

        In the graphical environment, it is GMT + 02.00.

        I downloaded the .ics file and saw the line :
        X-WR-TIMEZONE: “Europe/Paris” , this is ok.
        But a particular event for example :

        • on Google Calendar, the registered time displayed is
          16:00 - 17:00 (GMT + 02:00)
        • but the corresponding lines in the .ics are :
          DTSTART:20220722T140000Z
          DTEND:20220722T150000Z
          It seems the difference already appears there ?
          or this lines are in GMT time ?

        I thought I had to modify the timezone in the terminal.
        I did it with the command timedatectl set-timezone “Europe/Paris”.
        I obtained the good timezone in the terminal with CEST time instead of universal time.

        But I still have bad times (GMT instead of GMT+2) in the events displayed on Magic Mirror.

        I must be missing something perhaps in Google Calendar settings since the difference appears in the .ics file ?

        Cordial greetings.

        S 1 Reply Last reply Jul 14, 2022, 5:06 PM Reply Quote 0
        • A Offline
          alphanet @MMRIZE
          last edited by Jul 14, 2022, 4:25 PM

          @MMRIZE

          Thank you very much MMRIZE for your help.

          The URL of the calendar comes directly from Google Calendar.

          I have added the line forceLocalTZ:true on calendar section, but this doesn’t solve the problem.

          Perhaps my local timezone is not well defined ?

          Cordial greetings.

          alphanet

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @alphanet
            last edited by Jul 14, 2022, 5:06 PM

            @alphanet on the pi desktop, click the date upper right, and set the timezone for the system

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            A 1 Reply Last reply Jul 15, 2022, 4:34 PM Reply Quote 0
            • A Offline
              alphanet @sdetweil
              last edited by Jul 15, 2022, 4:34 PM

              @sdetweil

              Thank you sdetweil for your message.

              I have tried several timezones for the system upper right on the pi desktop.

              It has no effect on the times displayed on my calendar on Magic Mirror, still GMT+0 instead of GMT+2 on my Google Calendar.

              I have also tried different timezones in Google Calendar.
              It has no effect either on my calendar on Magic Mirror.
              It seems that Google Calendar uses UTC time in .ics files.

              Now the timezone is set correctly on my system.
              The problem should be in my configuration of the module MMM-CalendarExt2.

              I have just put the line forceLocalTZ to false, and at last, both calendars on Google Calendar and on MMM_CalendarExt2 are synchronized !

              It’s a bit strange as I thought forceLocalTZ:true should force the time to my local timezone and the contrary happens ?!

              But the problem is solved.

              Thanks a lot for your help.

              Cordial greetings.

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