[ 
https://issues.apache.org/jira/browse/WICKET-2648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12806681#action_12806681
 ] 

count negative commented on WICKET-2648:
----------------------------------------

There is a simple typo in wicket-date.js line 137: 
if(datePattern.match(/byy+/)) year = Wicket.DateTime.padDateFragment(year % 
100);
should be
if(datePattern.match(/yy+/)) year = Wicket.DateTime.padDateFragment(year % 100);



> DatePicker javascript uses 4 symbols for year although pattern contains just 
> yy
> -------------------------------------------------------------------------------
>
>                 Key: WICKET-2648
>                 URL: https://issues.apache.org/jira/browse/WICKET-2648
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.4.5
>            Reporter: Marat Radchenko
>
> Steps to reproduce:
> 1. Create TextField
> 2. Add DatePicker with yy for year (en_US locale, SHORT format, for example).
> 3. Set some date to textfield
> 4. Open page (year is correctly shown with two digits)
> 5. Click datepicker icon
> Expected: year is still 2-digit
> Actual: year becomes 4-digit

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to