Skip to content

Commit 0905eb4

Browse files
fix(calendar): respect showEndsOnlyWithDuration in absolute timed end
1 parent e4acbc0 commit 0905eb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

defaultmodules/calendar/calendar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ Module.register("calendar", {
730730
buildAbsoluteTimeText (event, eventStartDateMoment, eventEndDateMoment, now) {
731731
let timeText = CalendarUtils.capFirst(eventStartDateMoment.format(this.config.dateFormat));
732732

733-
if (this.config.showEnd && this.hasEventDuration(event)) {
733+
if (this.config.showEnd && (!this.config.showEndsOnlyWithDuration || this.hasEventDuration(event))) {
734734
const sameDay = this.isSameDay(eventStartDateMoment, eventEndDateMoment);
735735
if (sameDay && !this.dateFormatIncludesTime()) {
736736
timeText += `, ${eventStartDateMoment.format("LT")}`;

0 commit comments

Comments
 (0)