MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MMM-SORT Date Config

    Entertainment
    2
    2
    172
    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
      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
        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

        Create a working config
        How to add modules

        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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy