MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    [SOLVED] Dates lower than Thu Jan 01 1970 00:00:00 GMT+0100 (CET) are not supported

    Bug Hunt
    3
    5
    2821
    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.
    • Z
      zynex last edited by zynex

      Hi.

      I’m trying to add a birthday calendar from my NexClound server, but it fails with the error “Error: dates lower than Thu Jan 01 1970 00:00:00 GMT+0100 (CET) are not supported”. The other calendars I’ve added works fine.

      The dates added to this calendar reflects when the person is born, thus i have dates previous to 1970.

      The complete error log i get is;

      Error: dates lower than Thu Jan 01 1970 00:00:00 GMT+0100 (CET) are not supported
          at Object.toOrdinal (/home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js:105:15)
          at Iterinfo.rebuild (/home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js:1409:35)
          at RRule._iter (/home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js:978:10)
          at RRule.between (/home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js:794:21)
          at /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:135:24
          at Request._callback (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/node-ical.js:11:5)
          at Request.self.callback (/home/pi/MagicMirror/node_modules/request/request.js:188:22)
          at emitTwo (events.js:106:13)
          at Request.emit (events.js:191:7)
          at Request. (/home/pi/MagicMirror/node_modules/request/request.js:1171:10)
      
      

      Any idea how to fix this?

      Mykle1 1 Reply Last reply Reply Quote 0
      • Mykle1
        Mykle1 Project Sponsor Module Developer @zynex last edited by

        @zynex said in Dates lower than Thu Jan 01 1970 00:00:00 GMT+0100 (CET) are not supported:

        Any idea how to fix this?

        This issue came up a couple of months ago. You can try a forum search to see if they came up with a fix. Temporarily, you could change the date in your calendar so it’s usable. Good luck

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • J
          jasondreher last edited by

          You need to edit the /home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js file. See the post below.

          https://forum.magicmirror.builders/topic/2208/calendar-shows-no-entries-after-mm-update/29?page=3

          From the post…
          Edit this file

          /home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js
          Go to line 56 or search for the first occurance of “ORDINAL_BASE” and change this line:

          ORDINAL_BASE: new Date(1970, 0, 1),
          set it to a lower year like 1900.
          Then restart your magic mirror (pm2 restart mm)

          Z Mykle1 2 Replies Last reply Reply Quote 2
          • Z
            zynex @jasondreher last edited by

            @jasondreher That worked like a charm! Thanks for the help 🙂

            1 Reply Last reply Reply Quote 0
            • Mykle1
              Mykle1 Project Sponsor Module Developer @jasondreher last edited by

              @jasondreher said in [SOLVED] Dates lower than Thu Jan 01 1970 00:00:00 GMT+0100 (CET) are not supported:

              You need to edit the /home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js file. See the post below.

              Excellent!

              Create a working config
              How to add modules

              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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy