Merge pull request #582 from henglert/patch-1

Fix repeating count of yearly calendar events
This commit is contained in:
Michael Teeuw 2016-12-31 19:10:21 +01:00 committed by GitHub
commit 6654c461a6

View File

@ -134,7 +134,7 @@ Module.register("calendar", {
repeatingCountTitle = this.countTitleForUrl(event.url);
if (repeatingCountTitle !== "") {
var thisYear = new Date().getFullYear(),
var thisYear = new Date(parseInt(event.startDate)).getFullYear(),
yearDiff = thisYear - event.firstYear;
repeatingCountTitle = ", " + yearDiff + ". " + repeatingCountTitle;