You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "János Cserép (JIRA)" <ji...@apache.org> on 2010/03/10 23:01:27 UTC
[jira] Created: (WICKET-2773) yui DatePicker based wicket component
truncates years to the 0-99 interval even if 'yyyy' is set as year pattern
yui DatePicker based wicket component truncates years to the 0-99 interval even if 'yyyy' is set as year pattern
-----------------------------------------------------------------------------------------------------------------
Key: WICKET-2773
URL: https://issues.apache.org/jira/browse/WICKET-2773
Project: Wicket
Issue Type: Bug
Components: wicket-extensions
Affects Versions: 1.4.7
Reporter: János Cserép
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);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WICKET-2773) yui DatePicker based wicket
component truncates years to the 0-99 interval even if 'yyyy' is set as
year pattern
Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juergen Donnerstag resolved WICKET-2773.
----------------------------------------
Resolution: Duplicate
See WICKET-2767
> yui DatePicker based wicket component truncates years to the 0-99 interval even if 'yyyy' is set as year pattern
> -----------------------------------------------------------------------------------------------------------------
>
> Key: WICKET-2773
> URL: https://issues.apache.org/jira/browse/WICKET-2773
> Project: Wicket
> Issue Type: Bug
> Components: wicket-extensions
> Affects Versions: 1.4.7
> Reporter: János Cserép
>
> 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);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2773) yui DatePicker based wicket
component truncates years to the 0-99 interval even if 'yyyy' is set as
year pattern
Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843956#action_12843956 ]
Martin Grigorov commented on WICKET-2773:
-----------------------------------------
Duplicate of WICKET-2767
> yui DatePicker based wicket component truncates years to the 0-99 interval even if 'yyyy' is set as year pattern
> -----------------------------------------------------------------------------------------------------------------
>
> Key: WICKET-2773
> URL: https://issues.apache.org/jira/browse/WICKET-2773
> Project: Wicket
> Issue Type: Bug
> Components: wicket-extensions
> Affects Versions: 1.4.7
> Reporter: János Cserép
>
> 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);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.