• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

AM/PM times shown even with timeFormat: 24,

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 4 Posters 3.4k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    looolz
    last edited by Jan 1, 2017, 7:59 PM

    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?

    1 Reply Last reply Reply Quote 0
    • L Offline
      looolz
      last edited by Jan 1, 2017, 9:03 PM

      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',
      
      1 Reply Last reply Reply Quote 0
      • A Offline
        aitoribanez
        last edited by Jan 1, 2017, 9:37 PM

        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.

        1 Reply Last reply Reply Quote 0
        • R Offline
          roramirez Core Contributors
          last edited by Jan 19, 2017, 1:15 PM

          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

          Easy module development with MagicMirror Module Template

          1 Reply Last reply Reply Quote 0
          • R Offline
            Richard238
            last edited by Mar 25, 2017, 12:44 PM

            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.

            R 1 Reply Last reply Mar 25, 2017, 4:25 PM Reply Quote 0
            • R Offline
              roramirez Core Contributors @Richard238
              last edited by Mar 25, 2017, 4:25 PM

              @Richard238 Is a knowed issue
              https://github.com/MichMich/MagicMirror/issues/776

              If you can help with that go ahead with a Pull Request.

              Easy module development with MagicMirror Module Template

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy