fix relative date fulldate events to use start of dat to start of day difference

This commit is contained in:
Sam Detweiler
2019-02-18 07:18:07 -06:00
parent f7f4043ccd
commit 9686a9ba77
2 changed files with 2 additions and 1 deletions

View File

@@ -302,7 +302,7 @@ Module.register("calendar", {
timeWrapper.innerHTML = this.capFirst(moment(event.startDate, "x").format(this.config.fullDayEventDateFormat));
}
} else {
timeWrapper.innerHTML = this.capFirst(moment(event.startDate, "x").fromNow());
timeWrapper.innerHTML = this.capFirst(moment(event.startDate, "x").from(moment().format("YYYYMMDD")));
}
}
if(this.config.showEnd){