MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    AM/PM times shown even with timeFormat: 24,

    Troubleshooting
    4
    6
    2672
    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
      looolz last edited by

      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
        looolz last edited by

        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
          aitoribanez last edited by

          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
            roramirez Core Contributors last edited by

            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
              Richard238 last edited by

              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 Reply Quote 0
              • R
                roramirez Core Contributors @Richard238 last edited by

                @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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy