Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Hello, how can i change the time format from 12h to 24h?

    Productivity
    3
    5
    68
    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.
    • W
      Werner1340 last edited by

      Re: [worldclock - nobody made this](so I did.)

      1 Reply Last reply Reply Quote 0
      • BKeyport
        BKeyport Module Developer last edited by

        For worldclock? You can’t as far as I can tell. I’m not sure who’s the developer on here, but I’d recommend putting the title of the module in the subject if you wanna attract them.

        1 Reply Last reply Reply Quote 0
        • hango
          hango Module Developer last edited by hango

          change

          timeFormat: 'LT', //defined in moment.js format()
          

          according to https://momentjs.com/docs/#/displaying/format/

          in your case “H” or “HH”

          BKeyport W 2 Replies Last reply Reply Quote 0
          • BKeyport
            BKeyport Module Developer @hango last edited by BKeyport

            @hango oh, DUH. You’re right. Of course, this would be in config.js

            1 Reply Last reply Reply Quote 0
            • W
              Werner1340 @hango last edited by

              @hango said in Hello, how can i change the time format from 12h to 24h?:

              timeFormat: ‘LT’, //defined in moment.js format()

              Worked 🙂 . Thank you !!

              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