Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
1.4.7
-
None
-
None
Description
See last comment at http://issues.apache.org/jira/browse/WICKET-2648 - I open this new ticked because that one is closed.
Bug is still in the "wicket-date.js", line 137.
The wrong code is:
if(datePattern.match(/yy+/)) year = Wicket.DateTime.padDateFragment(year % 100);
This line also makes the module 100 on the year, when the year pattern is "yyyy".
The fixed code is:
if(datePattern.match(/yyyy+/))
{ year = year; }else if(datePattern.match(/yy+/)) year = Wicket.DateTime.padDateFragment(year % 100);
Attachments
Issue Links
- is duplicated by
-
WICKET-2648 DatePicker javascript uses 4 symbols for year although pattern contains just yy
- Resolved