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 23.5k 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.
    • SvenSommerS Offline
      SvenSommer
      last edited by SvenSommer

      Is your google calendar in the correct time zone?

      Looking for some building inspiration?
      Check out my large, thin and metal framed mirror on robstechlog.com.

      Modules released:
      MMM-GoogleAnalytics
      MMM-GrafanaChart
      MMM-GrafanaGauges

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

        You mean calendar on Google website?
        But everything work correctly until lastest update of mm

        1 Reply Last reply Reply Quote 0
        • SvenSommerS Offline
          SvenSommer
          last edited by

          Then I have no idea. Sorry…

          Looking for some building inspiration?
          Check out my large, thin and metal framed mirror on robstechlog.com.

          Modules released:
          MMM-GoogleAnalytics
          MMM-GrafanaChart
          MMM-GrafanaGauges

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

            Thx for response.

            1 Reply Last reply Reply Quote 0
            • B Offline
              Babene1 Project Sponsor
              last edited by

              i have the same problem, maybe I have time on the weekend for more test.
              For me it is really ugly

              strawberry 3.141S 1 Reply Last reply Reply Quote 0
              • strawberry 3.141S Offline
                strawberry 3.141 Project Sponsor Module Developer @Babene1
                last edited by

                @Babene1 https://forum.magicmirror.builders/post/25983

                Please create a github issue if you need help, so I can keep track

                1 Reply Last reply Reply Quote 0
                • Y Offline
                  ytmytm
                  last edited by

                  Hi

                  I also had this problem. The problem is that the time format string in modules/default/calendar/calendar.js is wrong for 24h setup.

                  Find these lines and change lower case hh into H in time format string.

                  case 24: {
                  			moment.updateLocale(config.language, {
                  				longDateFormat: {
                  					LT: "H:mm" // FIX here: was "hh:mm"
                  				}
                  			});
                  			break;
                  		}
                  

                  This was already fixed in development branch: https://github.com/MichMich/MagicMirror/pull/943/files

                  1 Reply Last reply Reply Quote 2
                  • M Offline
                    MarkusBe
                    last edited by

                    Hi,

                    I am still having this problem. I checked everything, the config file is correct, my localization of the Pi itself is ok and the changes in the calendar.js have already been made. I am still getting the calendar dates in 12h format without “A” and “P”, and I want them in “15:00” time format. Any Ideas left, how to fix this?

                    Thank you!

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

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

                      Any Ideas left, how to fix this?

                      Quick fix is to edit this in the module:

                      0_1501969529505_fix.JPG

                      Or move to the developers branch of MM

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 2
                      • M Offline
                        MarkusBe
                        last edited by

                        THANK YOU! That was the case! Haven’t seen this… Now it works!

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