Search and Top Navigation
#6731 closed bug (duplicate)
Opened December 08, 2010 09:28AM UTC
Closed December 08, 2010 01:18PM UTC
Last modified December 08, 2010 01:18PM UTC
Incorrect datepicker parseDate when date format has single "y"
Reported by: | maxbarbul | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.datepicker | Version: | 1.8.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When date format has single "y" and year is greater than 2020 DP parses date incorrectly.
Steps to reproduce:
1. Open http://jqueryui.com/demos/datepicker/#date-formats
2. Choose "Medium - d MM, y" format
3. Insert "31 December, 20" or select 31 of Dec 2020 via datepicker. (Calendar shows correct date)
4. Select the next day (1 of Jan 2021).
5. Open calendar
Expected result: calendar shows 1 of Jan 2021
Actual result: calendar shows 1 of Jan 1921 (see attached image)
See steps on this picture
[[Image(http://lh3.ggpht.com/_HC7KzrUqMsI/TP9Qq2GUz1I/AAAAAAAAAsM/OHmgBpMDMbA/s800/ui.datepicker.parseDate.bug.png)]]