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 354 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

      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 Reply Quote 0
      • S Offline
        sdetweil @Rhosybol
        last edited by

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