Read the statement by Michael Teeuw here.
Date change
-
Re: MMM-History
Anyone know how to change the date from 31/10/2024 to Oct. 31, 2024?
-
hi - you mean where it’s showing the date in the heading at the top? - the “TODAY IN HISTORY 02/19/2017” in the module picture (sorry, not familiar with this module)
in
MMM-History.jsit looks like the header is generated withheader.innerHTML = "Today in History " + moment().format('L');and
format('L')would give you a date as shown.You could try updating this line in MMM-History.js and specifying a different format?
e.g.
header.innerHTML = "Today in History " + moment().format('ll');looks like it should give you a “ShortMonth dd, yyyy” date instead. (Haven’t tried this to confirm, give it a go)
-
@raymondjspigot i’d make a fork of the module
clone that
add a parameter to set the format differently
and submit that as a pull request back to the module githubothers probably would like to change that format
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
