Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1) fix the bug where the date format from `$.jgrid.formatter.date.masks` ("ISO8601Long" for example) will be not used. 2) allow to parse **not full date**. For example parsing of "4/16/2015" by format `"n/j/Y g:i:s A"` in the old code produces invalid date because the time part will be not specified in the input data. It will be used now `Math.min(format.length, date.length)` as max index during parsing . All other fields will be stay defaults. It's clear that it can have some side effects in case of exotic formats and the dates, but I suppose that new logic will do produce more correct results as the old one in the most practical cases.
- Loading branch information