• 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.

Default Clock wrong after update

Scheduled Pinned Locked Moved Solved Troubleshooting
26 Posts 4 Posters 6.0k Views 4 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.
  • B Offline
    BKeyport Module Developer @sdetweil
    last edited by Oct 14, 2023, 11:39 PM

    @sdetweil Curious - are we still using Moment.js in default clock? I’ve heard issues relating with Moment and newer code - I think it might be failing to the point of no return.

    The "E" in "Javascript" stands for "Easy"

    S 1 Reply Last reply Oct 14, 2023, 11:46 PM Reply Quote 0
    • S Away
      sdetweil @BKeyport
      last edited by sdetweil Oct 14, 2023, 11:46 PM Oct 14, 2023, 11:46 PM

      @BKeyport AND it looks like we SHIP a copy… that is PROBABLY the problem

      Screenshot_20231014_184508_Chrome.jpg

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      D 1 Reply Last reply Oct 15, 2023, 5:01 PM Reply Quote 0
      • D Offline
        drstang @sdetweil
        last edited by Oct 15, 2023, 5:01 PM

        @sdetweil Makes sense - and certainly frustrating, as I realize I’m having issues with other modules that show times as well (showing sunrise/sunset, tide charts).

        Any suggestions on a fix - as it is essentially making my MM unusable since my ‘main’ modules rely on time…

        S 1 Reply Last reply Oct 15, 2023, 5:42 PM Reply Quote 0
        • S Away
          sdetweil @drstang
          last edited by Oct 15, 2023, 5:42 PM

          @drstang I am away til Tuesday.

          not sure what a fix would be

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 1 Reply Last reply Oct 15, 2023, 11:46 PM Reply Quote 1
          • D Offline
            drstang @sdetweil
            last edited by Oct 15, 2023, 11:46 PM

            @sdetweil I am a total novice at JS - but I fixed my modules by adjusting the configs - I incorporated moment-timezone.js and changed my code from ‘.local()’ to ‘.tz(America/New_York)’ Seems moment was having issues with the ‘local’ part of the code.

            A bit annoying, and I’m sure another way could have been used, but the modules are at least showing correct time now!

            B 1 Reply Last reply Oct 16, 2023, 1:44 AM Reply Quote 0
            • B Offline
              BKeyport Module Developer @drstang
              last edited by Oct 16, 2023, 1:44 AM

              @drstang Ahh, perhaps a forgotten requirement. It seems clear we need to get rid of Moment.js

              The "E" in "Javascript" stands for "Easy"

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 3
              • 3 / 3
              3 / 3
              • First post
                21/26
                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