Checked in patch for bug 257146:

Unable to change start and end dates if locale date format is unexpected
This commit is contained in:
mostafah%oeone.com 2004-08-27 17:09:04 +00:00
Родитель 012621b623
Коммит f78fcc2bd1
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -168,7 +168,8 @@ function DateFormater( )
this.alphaMonths = null;
this.probeSucceeded = false;
var parseShortDateRegex = /^\s*(\d+)\D(\d+)\D(\d+)\s*$/; //digits & nonDigits
// Allow formats such as 2002Y03M04D as well as 2002-03-04
var parseShortDateRegex = /^\s*(\d+)\D(\d+)\D(\d+)\D?\s*$/; //digits&nonDigits
var probeDate = new Date(2002,3-1,4); // month is 0-based
var probeString = this.getShortFormatedDate(probeDate);