Read the statement by Michael Teeuw here.
Incorrect Time Display in calendar(06:00 instead of 18:00 of 06:00PM)
-
I’ve Fixed it myself! Changed the timeformat here and it worked. It now shows me 18.00
switch (config.timeFormat) {
case 12: {
moment.updateLocale(config.language, {
longDateFormat: {
LT: “h:mm A”
}
});
break;
}
case 24: {
moment.updateLocale(config.language, {
longDateFormat: {
LT: “hh:mm” -
@erikgroentje this bug is already fixed and will be in the next release https://github.com/MichMich/MagicMirror/pull/943
-
@erikgroentje
Can you show what you change?/// NVM i have this :D
-
@erikgroentje What did you exactly changed in calendar.js to show 18:00 format?
-
@goprojojo said in Incorrect Time Display in calendar(06:00 instead of 18:00 of 06:00PM):
What did you exactly changed in calendar.js to show 18:00 format?
This should fix the time format for you.
Edit your calendar.js. Find the line that says:
longDateFormat
Change
LT: "hh:mm"
toLT: “HH:mm”
-
@Mykle1 Thnx. It works!
-
@goprojojo said in Incorrect Time Display in calendar(06:00 instead of 18:00 of 06:00PM):
Thnx. It works!
Fantastic! :^)