Read the statement by Michael Teeuw here.
Calendar Event Display start and end date
-
Re: How to display start and end times/dates of events in calendarI’ve not been able to set all-day events to display start and end dates. Any guidance here?
-
@pastormingle eh,???
-
@pastormingle there is a bug
edit
modules/default/calendar/calendar.jstimeWrapper.innerHTML += this.capFirst(moment(event.endDate, "x").format(this.config.dateEndFormat)); } else // <---- add this else, line 338 // For full day events we use the fullDayEventDateFormat if (event.fullDayEvent) {
config options
showEnd: true
timeFormat: “absolute” -
@sdetweil Don’t think i am doing this right as it’s not loading the calendar.js file now… Do I just copy this to the bottom of the file the same it?
-
@pastormingle now. you add the word ‘else’
to the line I documented.
what do u mean not loading?
did u edit that file like the other one I had u correct?
-
@sdetweil if (this.config.timeFormat === “absolute”) {
// Use dateFormat
timeWrapper.innerHTML = this.capFirst(moment(event.startDate, “x”).format(this.config.dateFormat));
// Add end time if showEnd
if (this.config.showEnd) {
timeWrapper.innerHTML += “-”;
timeWrapper.innerHTML += this.capFirst(moment(event.endDate, “x”).format(this.config.dateEndFormat));
}
// For full day events we use the fullDayEventDateFormat
if (event.fullDayEvent) {
//subtract one second so that fullDayEvents end at 23:59:59, and not at 0:00:00 one the next day
event.endDate -= oneSecond;
timeWrapper.innerHTML = this.capFirst(moment(event.startDate, “x”).format(this.config.fullDayEventDateFormat));
} -
@pastormingle eh,???
-
@sdetweil Ok i think i got it now…
if (this.config.showEnd) {
timeWrapper.innerHTML += “-”;
timeWrapper.innerHTML += this.capFirst(moment(event.endDate, “x”).format(this.config.dateEndFormat));
} else
// For full day events we use the fullDayEventDateFormat
if (event.fullDayEvent) {