From 4a2beff28deace5cd21e04e6720e64c0ee3e7a2a Mon Sep 17 00:00:00 2001 From: sam detweiler Date: Wed, 23 Oct 2024 17:05:20 -0300 Subject: [PATCH 1/2] fix failing calendar testcase --- tests/configs/modules/calendar/show-duplicates-in-calendar.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/configs/modules/calendar/show-duplicates-in-calendar.js b/tests/configs/modules/calendar/show-duplicates-in-calendar.js index 7ad420944d..a42465816b 100644 --- a/tests/configs/modules/calendar/show-duplicates-in-calendar.js +++ b/tests/configs/modules/calendar/show-duplicates-in-calendar.js @@ -27,6 +27,10 @@ let config = { ] }; +Date.now = () => { + return new Date("15 Sep 2024 12:30:00 GMT").valueOf(); +}; + /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") { module.exports = config; From 001bc7ddf002a7c2c6909af5ab3ecdc250a55458 Mon Sep 17 00:00:00 2001 From: sam detweiler Date: Wed, 23 Oct 2024 18:02:30 -0300 Subject: [PATCH 2/2] fix changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 731ef6c30f..555202530c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ _This release is scheduled to be released on 2025-01-01._ - [updatenotification] Fix pm2 using detection when pm2 script is in MagicMirror root folder (#3576) - [core] Fix loading node_helper of modules: avoid black screen, display errors and continue loading with next module (#3578) - [weather] changed default value for weatherEndpoint of provider openweathermap to "/onecall" (#3574) +- [calendar] fix one testcase which had a date expired problem.. ## [2.29.0] - 2024-10-01