Search and Top Navigation
#5285 closed bug (duplicate)
Opened March 05, 2010 04:34AM UTC
Closed November 22, 2010 06:36PM UTC
Last modified October 11, 2012 09:15PM UTC
datepicker.parseDate doesn't handle short years properly
Reported by: | Ivan Peters | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.datepicker | Version: | 1.7.2 |
Keywords: | parseDate | Cc: | |
Blocked by: | Blocking: |
Description
The parseDate code appears to cheat slightly by assuming that each component will use the maximum number of digits or will have some sort of delimiter. In the case of the year, it assumes up to 4 digits which can be a problem for dates using this format:
yddmm
$.datepicker.parseDate("yddmm", "100105") will fail with "Missing number at position 6".
This should have been resolved by the fix for #6659.