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.

    Calendar timezone problems

    Scheduled Pinned Locked Moved Solved Troubleshooting
    10 Posts 6 Posters 3.2k Views 6 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.
    • R Offline
      Rosbif @mlcampbe
      last edited by

      @mlcampbe Just found this whilst googling. The solution doesn’t work for me either. It’s a tad frustrating.

      I’ve tried with both a google calendar and O365 calendar and both produce the same results (UK time displayed whereas my timezone is Paris).

      1 Reply Last reply Reply Quote 0
      • B Offline
        BravoOscar @mlcampbe
        last edited by

        @mlcampbe said in Calendar timezone problems:

        I’ve solved this problem by replacing the node-ical script that the default calendar modules uses with a fork of it.

        I did some research and found that the default calendar module uses the node-ical modules to parse calendar data. I notice that it is based off of https://github.com/peterbraden/ical.js. I also found https://github.com/jens-maus/node-ical that is based off of the original peterbraden/ical.js. but seems to have been updated to use the npm package moment-timezone.

        I did a drop in replacement and it seems to work:

        cd modules/default/calendar/vendor
        mv ical.js ical.js.orig
        git clone https://github.com/jens-maus/node-ical
        mv node-ical/ ical.js
        cd ical.js
        npm install

        Restarted MM and now my timezones are showing up properly. So I made my own modules out of this so it won’t get overwritten by updates.

        I have a problem with the google ical calendar format, its 1 hour off when its used in MMM-CalendarEXT2, but I think it has something to do with winter/summer time.
        Can the quote fix this problem?

        I can see in the folder " ~/MagicMirror/modules/MMM-CalendarExt2/node_modules " that there is a file called ical.js, but how to i update the file to the one in the qoute, so i can test if thats is the problem?

        My pi has timezone to Europe / Copenhagen, and the calender entry is ok when i look at my phones calender and also ok on the google calender.

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @BravoOscar
          last edited by

          @bravooscar is the default calendar ok? I have done a lot of work to get that fixed over the last few releases…

          calext2 is no longer maintained…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          B 1 Reply Last reply Reply Quote 0
          • B Offline
            BravoOscar @sdetweil
            last edited by

            @sdetweil Yes default calendar is ok,so it has to be CalendarEXT2 that has a problem, and it could be the ical.js from above that could help?

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @BravoOscar
              last edited by

              @bravooscar sorry, no idea.

              MM moved away from ical.js when it couldn’t handle some of the requirements from multiple calendar sources. even then I added a lot of code to handle tz and daylight savings shifts

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 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