Skip to main content

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)

Attachments (0)
Change History (3)

Changed December 08, 2010 09:35AM UTC by maxbarbul comment:1

Changed December 08, 2010 01:18PM UTC by scottgonzalez comment:2

resolution: → duplicate
status: newclosed

Changed December 08, 2010 01:18PM UTC by scottgonzalez comment:3

Duplicate of #6659.