Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

short dayname with time there #3421

Open
skyzuma opened this issue Apr 4, 2024 · 4 comments
Open

short dayname with time there #3421

skyzuma opened this issue Apr 4, 2024 · 4 comments

Comments

@skyzuma
Copy link

skyzuma commented Apr 4, 2024

i am not a native en speaker ... this is an modification ask, not a bug

my next calendar event is Saturday at 15.30 (german: Samstag um 15.30 Uhr) ... both are very long, german is much longer but to long for the available cell ... its possible to short this dayname?

there is an thread in the forum (https://forum.magicmirror.builders/topic/18610/set-the-calendar-day-to-a-short-version?page=1) with the suggestion to open an issue ...

here https://momentjscom.readthedocs.io/en/latest/moment/04-displaying/01-format/ is the needed format i think i need: Day of Week > "ddd" and i think the "problem" is in calendar.js:455 > nextWeek "dddd" but idk if this the problerm ... also nextDay with "TOMORROW" is to long if an time there

i need "Sat at 15:30" instead of Saturday at 15.30 ... i need a short dayname of the week but only if a time there ... same with tomorrow and other long names with an time (in german tomorrow (morgen) is a way shorter)

@skyzuma
Copy link
Author

skyzuma commented Apr 20, 2024

ive changed line 455: from "nextWeek: "dddd"" (full dayname) ro "nextWeek: "ddd"" (short dayname) an restart mm but no changes :( iam not a programmer ... any1 can help?

@sdetweil
Copy link
Collaborator

its only for full day events.. no time.. AND also timeFormat:"relative"

I changed mine to ddd and created an event for Monday and it stopped at that code and
produced 'Mon'

@skyzuma
Copy link
Author

skyzuma commented Apr 21, 2024

events without time works good with "ddd" ... and how i can change it for events with time? same for tomorrow (with and without time)

an option in config.js is a good idea ... but i think this is not important enough for a change ...

@sdetweil
Copy link
Collaborator

the code says the config.js dateFormat property will be used for this..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants