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.

    Calendar times in 24 hour format?

    Scheduled Pinned Locked Moved Feature Requests
    31 Posts 9 Posters 22.1k Views 9 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.
    • D Offline
      dinkybluebug245
      last edited by

      Any way to change calendar times to 24 hour? (as in the clock?)

      1 Reply Last reply Reply Quote 0
      • J Offline
        jtyle6
        last edited by

        Change the timeFormat: in the config.js file in config folder so looks like this.

        
        /* Magic Mirror Config
         *
         * By Michael Teeuw http://michaelteeuw.nl
         * MIT Licensed.
         */
        
        var config = {
                port: 8080,
        
                language: 'en',
                timeFormat: 12,
                units: 'metric',
        

        Note: I Have only copied top half of mine.

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          dinkybluebug245 @jtyle6
          last edited by

          @jtyle6 Mine is already showing timeformat as 24, which shows the clock in 24 hour format. But calendar items are still showing 12 hour format with AM/PM

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jtyle6 @dinkybluebug245
            last edited by

            @dinkybluebug245 said in Calendar times in 24 hour format?:

            @jtyle6 Mine is already showing timeformat as 24, which shows the clock in 24 hour format. But calendar items are still showing 12 hour format with AM/PM

            ah, whoops sorry miss read the Topic.

            1 Reply Last reply Reply Quote 0
            • M Offline
              MrEdOne
              last edited by

              Sorry for Dig this topic from grave but i have the same problem like @dinkybluebug245
              I have meeting on 15:00 but calendar say its 03:00. Without PM
              I have in config timeFormat: 24.
              Everything work fine, only wrong time is show.
              And this is bug after update to last version.

              Mykle1M 1 Reply Last reply Reply Quote 0
              • Mykle1M Offline
                Mykle1 Project Sponsor Module Developer @MrEdOne
                last edited by

                @MrEdOne

                Two things to try.

                Is your time and time zone set correctly on your Pi itself?

                You could also try timeFormat: 24, in the module entry of the config.

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • M Offline
                  MrEdOne
                  last edited by MrEdOne

                  timeFormat: 24, in calendar module not work.
                  How can i check is my time and timezone correctly set?
                  Im from Poland so i set Europe/Warsaw time in raspi-config.
                  My clock works correctly.

                  When i change timeFormat to 12 calendar add PM to 03:00 so it’s correctly, but when i change to 24, PM disappear.

                  Mykle1M 1 Reply Last reply Reply Quote 0
                  • Mykle1M Offline
                    Mykle1 Project Sponsor Module Developer @MrEdOne
                    last edited by

                    @MrEdOne said in Calendar times in 24 hour format?:

                    but when i change to 24, PM disappear.

                    That makes perfect sense. 24 hour format would NOT show AM/PM, only 12 hour format would do that.

                    3:00 PM in 12 hour format

                    1500 in 24 hour format (no PM)

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      MrEdOne
                      last edited by

                      Yes, but it won’t change 03:00 to 15:00

                      Mykle1M 1 Reply Last reply Reply Quote 0
                      • Mykle1M Offline
                        Mykle1 Project Sponsor Module Developer @MrEdOne
                        last edited by

                        @MrEdOne

                        Oh ok, that’s different

                        It sounds like something is overriding the timeFormat: setting. Have you made any changes to the calendar.js file?

                        Create a working config
                        How to add modules

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 1 / 4
                        • 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