Fixed typo in condition

This commit is contained in:
Johan Alvinger 2020-11-24 00:37:21 +01:00
parent 839ca9ecfb
commit ce5c0ed5ba

View File

@ -315,7 +315,7 @@ Module.register("calendar", {
event.endDate -= oneSecond;
timeWrapper.innerHTML = this.capFirst(moment(event.startDate, "x").format(this.config.fullDayEventDateFormat));
}
if (this.config.getRelative > 0 && event.startDate >= now) {
if (this.config.getRelative > 0 && event.startDate < now) {
// Ongoing and getRelative is set
timeWrapper.innerHTML = this.capFirst(
this.translate("RUNNING", {