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

[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.2k 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 Oct 17, 2017, 1:36 PM Oct 17, 2017, 9:57 AM

    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?

    M 1 Reply Last reply Oct 17, 2017, 11:08 AM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @Guest
      last edited by Oct 17, 2017, 11:08 AM

      @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 Oct 17, 2017, 12:43 PM

        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)

        ? M 2 Replies Last reply Oct 17, 2017, 1:36 PM Reply Quote 2
        • ? Offline
          A Former User @jasondreher
          last edited by Oct 17, 2017, 1:36 PM

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

          1 Reply Last reply Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @jasondreher
            last edited by Oct 17, 2017, 8:31 PM

            @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
            1 / 1
            • First post
              3/5
              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