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.

    Incorrect Time Display in calendar(06:00 instead of 18:00 of 06:00PM)

    Scheduled Pinned Locked Moved Troubleshooting
    8 Posts 5 Posters 3.3k Views 5 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.
    • E Offline
      erikgroentje
      last edited by

      I’ve Fixed it myself! Changed the timeformat here and it worked. It now shows me 18.00

      switch (config.timeFormat) {
      case 12: {
      moment.updateLocale(config.language, {
      longDateFormat: {
      LT: “h:mm A”
      }
      });
      break;
      }
      case 24: {
      moment.updateLocale(config.language, {
      longDateFormat: {
      LT: “hh:mm”

      strawberry 3.141S M G 3 Replies Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @erikgroentje
        last edited by

        @erikgroentje this bug is already fixed and will be in the next release https://github.com/MichMich/MagicMirror/pull/943

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

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

          @erikgroentje
          Can you show what you change?

          /// NVM i have this :D

          1 Reply Last reply Reply Quote 0
          • G Offline
            goprojojo @erikgroentje
            last edited by

            @erikgroentje What did you exactly changed in calendar.js to show 18:00 format?

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

              @goprojojo said in Incorrect Time Display in calendar(06:00 instead of 18:00 of 06:00PM):

              What did you exactly changed in calendar.js to show 18:00 format?

              This should fix the time format for you.

              Edit your calendar.js. Find the line that says:

              longDateFormat

              Change LT: "hh:mm" to LT: “HH:mm”

              Create a working config
              How to add modules

              G 1 Reply Last reply Reply Quote 2
              • G Offline
                goprojojo @Mykle1
                last edited by

                @Mykle1 Thnx. It works!

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

                  @goprojojo said in Incorrect Time Display in calendar(06:00 instead of 18:00 of 06:00PM):

                  Thnx. It works!

                  Fantastic! :^)

                  Create a working config
                  How to add modules

                  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