• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.1k 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 Jul 28, 2017, 5:02 PM

    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”

    S M G 3 Replies Last reply Jul 28, 2017, 8:05 PM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @erikgroentje
      last edited by Jul 28, 2017, 8:05 PM

      @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 Jul 29, 2017, 10:11 AM Jul 29, 2017, 10:04 AM

        @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 Sep 26, 2017, 7:22 PM

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

          M 1 Reply Last reply Sep 26, 2017, 8:53 PM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @goprojojo
            last edited by Sep 26, 2017, 8:53 PM

            @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 Sep 27, 2017, 4:09 PM Reply Quote 2
            • G Offline
              goprojojo @Mykle1
              last edited by Sep 27, 2017, 4:09 PM

              @Mykle1 Thnx. It works!

              M 1 Reply Last reply Sep 27, 2017, 6:41 PM Reply Quote 1
              • M Offline
                Mykle1 Project Sponsor Module Developer @goprojojo
                last edited by Sep 27, 2017, 6:41 PM

                @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