From the docs: "The getYear method returns the year minus 1900;" It is not supposed to return the number of calendar year since 1970.
From the ECMA-262 standard: B.2.4 Date.prototype.getYear() NOTE: The getFullYear method is preferred for nearly all purposes, because it avoids the “year 2000 problem.” When the getYear method is called with no arguments the following steps are taken: 1. Let t be this time value. 2. If t is NaN, return NaN. 3. Return YearFromTime(LocalTime(t)) - 1900.
I'm afraid I have to mark this one as Invalid, but thank you for this report. We depend on contributors like to to catch the things we miss!
Marking Verified -
You are absolutely right. cc'ing Steve Rudman re this issue -
*** Bug 294648 has been marked as a duplicate of this bug. ***