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.

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

    Scheduled Pinned Locked Moved Bug Hunt
    5 Posts 3 Posters 3.6k Views 2 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.
    • ? Offline
      A Former User
      last edited by A Former User

      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?

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @Guest
        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 Offline
          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)

          ? Mykle1M 2 Replies Last reply Reply Quote 2
          • ? Offline
            A Former User @jasondreher
            last edited by

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

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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 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