You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jacek Rogoźnicki (JIRA)" <ji...@apache.org> on 2011/04/05 18:29:05 UTC

[jira] [Updated] (WICKET-3598) DatePicker issues with locale medium date format

     [ https://issues.apache.org/jira/browse/WICKET-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacek Rogoźnicki updated WICKET-3598:
-------------------------------------

    Description: 
DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));

Case 1:
- en-US locale
- for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM

Case 2:
- pl-PL locale
- 2010-10-25 is in the DateTextField
- DatePicker opens on April 2031 rather than October 2010

I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.

I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

  was:
DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));

*Case 1:*
* en-US locale
* for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM

*Case 2:*
* pl-PL locale
* 2010-10-25 is in the DateTextField
* DatePicker opens on *April 2031* rather than *October 2010*

I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.

I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.


> DatePicker issues with locale medium date format
> ------------------------------------------------
>
>                 Key: WICKET-3598
>                 URL: https://issues.apache.org/jira/browse/WICKET-3598
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 1.4.17
>            Reporter: Jacek Rogoźnicki
>
> DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));
> Case 1:
> - en-US locale
> - for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM
> Case 2:
> - pl-PL locale
> - 2010-10-25 is in the DateTextField
> - DatePicker opens on April 2031 rather than October 2010
> I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.
> I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira