From 86c69ea432630e1a60134438546b787340462079 Mon Sep 17 00:00:00 2001 From: "mostafah%oeone.com" Date: Fri, 27 Aug 2004 16:53:22 +0000 Subject: [PATCH] Checked in patch for bug 257132: Two digit year is considered as 19xx instead of 20xx in datepicker --- calendar/resources/content/dateUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/resources/content/dateUtils.js b/calendar/resources/content/dateUtils.js index 943a8016009e..23554837e7d5 100644 --- a/calendar/resources/content/dateUtils.js +++ b/calendar/resources/content/dateUtils.js @@ -379,8 +379,8 @@ DateFormater.prototype.parseShortDate = function ( dateString ) } if (year != Number.MIN_VALUE && month != -1 && day != -1) { // year, month, day successfully parsed - if (this.twoDigitYear && 0 <= year && year < 100) { - // If 2-digit year format and 0 <= year < 100, + if (0 <= year && year < 100) { + // If 0 <= year < 100, treat as 2-digit year(like dateService.FormatDate): // parse year as up to 30 years in future or 69 years in past. // (Covers 30-year mortgage and most working people's birthdate.) // otherwise will be treated as four digit year.