Magicmirror: Calendar times incorrect since update

Created on 8 Jul 2017  路  3Comments  路  Source: MichMich/MagicMirror

Since the update to the latest PI version my calendar times are incorrect. The timezone is set correctly and set to 24H.

Yet, all times after noon are set 12 hours too early.

Most helpful comment

You are correct - was sloppy testing on my behalf. The PR should fix this problem. Thanks for reporting!

All 3 comments

Problem is in calendar.js:

diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/calendar.js
index 9ab864b9..672a47b 100644
--- a/modules/default/calendar/calendar.js
+++ b/modules/default/calendar/calendar.js
@@ -81,7 +81,7 @@ Module.register("calendar", {
                case 24: {
                        moment.updateLocale(config.language, {
                                longDateFormat: {
-                                       LT: "hh:mm"
+                                       LT: "HH:mm"
                                }
                        });
                        break;

should fix the problem

You are correct - was sloppy testing on my behalf. The PR should fix this problem. Thanks for reporting!

@MichMich Please, close this issue :). Thanks @QNimbus

Was this page helpful?
0 / 5 - 0 ratings