Read the statement by Michael Teeuw here.
Calendar times in 24 hour format?
-
-
Hi
I also had this problem. The problem is that the time format string in modules/default/calendar/calendar.js is wrong for 24h setup.
Find these lines and change lower case
hh
intoH
in time format string.case 24: { moment.updateLocale(config.language, { longDateFormat: { LT: "H:mm" // FIX here: was "hh:mm" } }); break; }
This was already fixed in development branch: https://github.com/MichMich/MagicMirror/pull/943/files
-
Hi,
I am still having this problem. I checked everything, the config file is correct, my localization of the Pi itself is ok and the changes in the calendar.js have already been made. I am still getting the calendar dates in 12h format without “A” and “P”, and I want them in “15:00” time format. Any Ideas left, how to fix this?
Thank you!
-
@MarkusBe said in Calendar times in 24 hour format?:
Any Ideas left, how to fix this?
Quick fix is to edit this in the module:
Or move to the developers branch of MM
-
THANK YOU! That was the case! Haven’t seen this… Now it works!
-
Fantastic! Enjoy your mirror. :^)