From 75ff9e7c03ae8f16a38b23b8d4e644b487d64644 Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 30 Jan 2016 11:51:24 +0100 Subject: [PATCH] Update calendar.js endSeconds >= 0 shows me calendar entries which are 0 seconds long. E. g. entries from '24.01.2009 10:00' to '24.01.2009 10:00'. So I get them still displayed, even though they ended years ago. endSeconds > 0 fixed that for me. --- js/calendar/calendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/calendar/calendar.js b/js/calendar/calendar.js index f0178ed1..c46bef82 100644 --- a/js/calendar/calendar.js +++ b/js/calendar/calendar.js @@ -79,7 +79,7 @@ calendar.processEvents = function (url, events) { this.eventList.push({'description':e.SUMMARY,'seconds':seconds,'days':time_string,'url': url, symbol: this.calendarSymbol}); } e.seconds = seconds; - } else if (endSeconds >= 0) { + } else if (endSeconds > 0) { // TODO: Replace with better lang handling if (endSeconds <= 60*60*5 || endSeconds >= 60*60*24*2) { var time_string = this.shortRunningText + ' ' + moment(endDate).fromNow(true);