зеркало из https://github.com/mozilla/gecko-dev.git
Checked in the rest of attachment 135398.(Bug 185394)
This commit is contained in:
Родитель
2ecdedf667
Коммит
09a26bb947
|
@ -316,6 +316,8 @@ DateFormater.prototype.parseShortDate = function ( dateString )
|
|||
var currentYear = 1900 + new Date().getYear(); // getYear 0 is 1900.
|
||||
var currentCentury = currentYear - currentYear % 100;
|
||||
year = currentCentury + year;
|
||||
if (year < currentYear - 69)
|
||||
year += 100;
|
||||
if (year > currentYear + 30)
|
||||
year -= 100;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче