Read the statement by Michael Teeuw here.
[SOLVED] Dates lower than Thu Jan 01 1970 00:00:00 GMT+0100 (CET) are not supported
-
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?
-
@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
-
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) -
@jasondreher That worked like a charm! Thanks for the help :)
-
@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!
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