Skip to content

Commit

Permalink
Remove MAX_YEAR constant for expanding timezones.
Browse files Browse the repository at this point in the history
  • Loading branch information
darktrojan committed Oct 2, 2022
1 parent 7fb7b51 commit 05b97cc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/ical/timezone.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,6 @@

changesEndYear += ICAL.Timezone.EXTRA_COVERAGE;

if (changesEndYear > ICAL.Timezone.MAX_YEAR) {
changesEndYear = ICAL.Timezone.MAX_YEAR;
}

if (!this.changes.length || this.expandedUntilYear < aYear) {
var subcomps = this.component.getAllSubcomponents();
var compLen = subcomps.length;
Expand Down Expand Up @@ -524,6 +520,5 @@
};

ICAL.Timezone._minimumExpansionYear = -1;
ICAL.Timezone.MAX_YEAR = 2035; // TODO this is because of time_t, which we don't need. Still useful?
ICAL.Timezone.EXTRA_COVERAGE = 5;
})();

0 comments on commit 05b97cc

Please sign in to comment.