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

MMM-SORT Date Config

Scheduled Pinned Locked Moved Entertainment
2 Posts 2 Posters 365 Views 2 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.
  • R Offline
    Rhosybol
    last edited by Jul 3, 2021, 5:47 PM

    I’m hoping someone can help me with this - I have MMM_SORT installed and working well but the date config is a bit cramped - I’d like to remove the seconds and put it into UK date format and have everything on one line instead of it wrapping. DD/MM/YY instead of YYYY-MM-DD which is what I have now - I’m not sure where to configure this - i’ve tried increasing max width to 400px (from 300) but this has no effect - any suggestions please?

    Thanks!MMM_sort-StaticTide.PNG MMM_sort-RotatingTide.PNG

    S 1 Reply Last reply Jul 3, 2021, 7:26 PM Reply Quote 0
    • S Away
      sdetweil @Rhosybol
      last edited by Jul 3, 2021, 7:26 PM

      @rhosybol

      well, it looks like the config parm

        timeFormat: "  h:mm a",   
      

      will let you format the date/time

      here is a decent description of the format strings
      https://thecodebarbarian.com/formatting-javascript-dates-with-moment-js.html

      as for width, then I think u have to use css to set the width

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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