Read the statement by Michael Teeuw here.
Calendar shows hours left at holidays
-
I use the default calendar to display the holidays (“Feiertage”) here in Germany. For example, today is one and is displayed that it is “Noch 14 Stunden” (14 hours left). But there I would like to have the display “Heute” (today) or the date. Also because the 14 hours are calculated using UTC time and not the local time.
I can’t find anything suitable in the calendar configuration. Does anyone know the solution?

-
@macg I think that is getRelative:0
-
@sdetweil The timeFormat is relative by default. I used getRelative: 0 without changes at the display. Also with timeFormat: “absolute” only the display changed since hours instead of remaining hours. But with an additional urgency: 0 it works. Thank you, Sam!
Oh yes, an adjustment of the format was also necessary. The dateFormat was no longer applied.
Before:
{ module: "calendar", header: "Feiertage", position: "top_left", config: { dateFormat: "D. MMM", displaySymbol: false, broadcastEvents: false, hideTime: true, fadePoint: 0.05, fetchInterval: 24 * 60 * 60 * 1000, // 1 day calendars: [ { maximumEntries: 3, url: "webcal://localhost:8080/modules/calendar/feiertage.ics" } ] } },After changes:
{ module: "calendar", header: "Feiertage", position: "top_left", config: { dateFormat: "D. MMM", displaySymbol: false, broadcastEvents: false, hideTime: true, timeFormat: "absolute", getRelative: 0, urgency: 0, fullDayEventDateFormat: "D. MMM", nextDaysRelative: true, // shows Tomorrow and Today fadePoint: 0.05, fetchInterval: 24 * 60 * 60 * 1000, // 1 day calendars: [ { maximumEntries: 3, url: "webcal://localhost:8080/modules/calendar/feiertage.ics" } ] } },I can well do without the “today”.

Edit: The “Today” comes with the setting: nextDaysRelative: true.
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