Read the statement by Michael Teeuw here.
"Today" on default calendar module
-
I’d use this in my config.js for the calendar module’s config:
dateFormat: "h:mm a", // This sets the string to time only timeFormat: "absolute", // only shows times normally. getRelative: 0, // lowers the limit for absolute time to zero - no relative. urgency: 0, // makes sure it stays absolute.
I do believe that changing the dateFormat to “H:mm” will go 24 hour.
-
@bkeyport , Thanks for working with me here…
I added that to my config. It didnt change the display any. Other than the calendar url, the only options i have in my config are maximumEntries: “4” & maximumNumberOfDays: “1”. Making your modification had no affect on the display. I tried it on two different mirrors with the same result. I will try it with an event with a given time and see if it has an affect on that…
Rob
-
odd… Here’s how I have mine configured, and it clearly changes things
{ module: "calendar", position: "top_right", config: { maximumEntries: 15, maximumNumberOfDays: 90, displaySymbol: false, maxTitleLength: 30, wrapEvents: true, fetchInterval: 120000, fade: false, dateFormat: "M/D h:mm a", fullDateEventDateFormat: "M/D", timeFormat: "absolute", getRelative: 0, urgency: 0, broadcastEvents: false, hideOngoing: true, excludedEvents: ["InOffice"], dateEndFormat: "h:mm a", calendars: [ { symbol: "calendar", url: "https://url", } ], } },
-
@bkeyport , I will give that a try and get back with you…
-
@bkeyport, I modified my config with your config and it removed the Today, just as I was looking for! Thank you for your help. I think where my problem may have been is instead of having all of the config options above the calendars section, right after the config braces, I had all of my options below the url line in the calendars section…
When I saw your config layout, I was immediately suspicious of my config layout being the culprit…
I had one mirror that was still displaying Today even though I edited the config just like the other one that was not displaying it… I ended up having to edit line 279 in the calendar.js file & removing the text “Today” from "timeWrapper.innerHTML = this.capFirst(this.translate("Today “));”
That together does the trick! I thank you for your help!