Read the statement by Michael Teeuw here.
720p TV - Re-adjust Region Sections?
-
Playing around with the font sizes I realized the regions can be controlled by how long the text across goes.
I guess my question now changes to this: is it possible to change the style of the calendar text? For example “Tomorrow at 9:30 AM” takes up a lot of space. It would be nice to change it to something like “Tmw at 9:30AM” or just “Tomorrow”
Also, while we wait for the folks at moment.js to hopefully find a solution for the 12 hour overflow problem I had tried to set everything to 24 hr format. However, I cant get the calendar to go to a 24 hr format. I changed the timeformat variable to 24 in the config, but it doesn’t affect the calendar times (just changes the clock). Is there a different way to change these?
I realized this turned into more of a calendar module post. I can repost in that section if necessary.
-
So the
Tomorrow at 9:30AM
is how moment.js displays it. We’re not doing the formatting, moment.js is. However, what you CAN control is the amount of characters the event itself displays. So for example, if you happen to have an event with a rather long title, you can tell the Calendar module to limit that (by truncating the text). Look for themaxTitleLength
config option to do that. The default is 25 characters.As for whether to display
Tomorrow
orTomorrow at 9:30AM
, that’s a difference in events. All day events are displayed simply asTomorrow
. However an event at a specific time, will be displayed with the time it will happen.And the calendar module itself does not change between 12 or 24 hour display. At least, as far as memory serves me. I’ll have to go back and look in the code.
-
@KirAsh4 ah okay that makes sense.
Since all the calendar stuff is controlled by moment.js, does that mean there is currently no temporary work around to the overflow issue in the calendar?
Thanks for the help!
-
I know someone said to switch to 24 hours, but I am not certain that actually affects the calendar itself, or the overall display of time (and therefore time calculations) in general. That’s something I need to go check on in the code. And right now I’m in the middle of another project that’s preventing me from diving into the module code.
-
By the way, while inconvenient every time, you can issue a
'pm2 restart <MM>'
(where<MM>
is whatever you called your process) to refresh the display and those times would display properly again.