Read the statement by Michael Teeuw here.
AM/PM times shown even with timeFormat: 24,
-
Fresh install of Raspbian, with MagicMirror working. The default clock module shows a 24 hour clock, but the calendar module, and other third party modules (MMM-Ruter) that show times for public transport show times with AM/PM (which I don’t want).
-I’ve set the locale and timezone on Raspbian to Norwegian.
-I’ve checked that I can make the default clock change to a 12 hour AM/PM clock with the config.js file.
Is there a separate secret spot I can choose 24 hour times to affect all other modules?
-
Figured it out. In the config.js file, I had to put
language: 'nb',
I had:
language: 'en',
and tried, (but didn’t work) with:
language: 'no',
-
First message/response on the forum. I start using and reading code some weeks ago and I want to give thanks to all contributor of MM. :-)
The translations files of MM are under translate folder: https://github.com/MichMich/MagicMirror/tree/master/translations. I think that Norwegian is on nn.json so try with “nn” on config file.
-
said in AM/PM times shown even with timeFormat: 24,:
Is there a separate secret spot I can choose 24 hour times to affect all other modules?
The format time for default modules can be set in
timeFormat
configuration.
https://github.com/MichMich/MagicMirror#configuration -
Same issue here, config is set to 24, yet calendar shows 10:35pm.
Google calendar shows 22:35, why is MM showing PM rather than 24hr?
Thank you.
-
@Richard238 Is a knowed issue
https://github.com/MichMich/MagicMirror/issues/776If you can help with that go ahead with a Pull Request.