Hi,
I would like to format the calendar events of today and tomorrow relatively with time. All other events should be formatted in the form “ddd, D.MMM, HH:mm”.
In the new version there is a new config option showTimeToday with which I should be able to do this. But I don’t get along with it and need help.
The events should be displayed like this for example:
appointment-1 Heute, 18:00
appointment-2 Morgen, 14:00
appointment-3 Mo, 30.Okt, 09:00
my config is
{
module: "calendar",
header: "Nächste Termine ",
position: "top_left",
config: {
fetchInterval: 600000, // 10 Minuten
calendars: [
{
/* Kalender Paula */
symbol: "female",
url: "....ics"
},
{
/* Kalender Sepp */
symbol: "male",
url: "....ics"
},
],
maxTitleLength: 21,
wrapEvents: false,
dateFormat: "ddd, D.MMM, HH:mm",
fullDayEventDateFormat: "ddd, D.MMM",
timeFormat: "absolute",
getRelative: 12,
urgency: 0,
showEnd: false,
maximumEntries: 6,
fade: false,
hidePrivate: false,
nextDaysRelative: true,
sliceMultiDayEvents: false,
showTimeToday: true,
}
},
Many thanks for any help.
Many greetings
Sepp