You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2015/02/26 09:32:04 UTC

[jira] [Commented] (WICKET-5842) DateTextField uses wrong locale

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

Sven Meier commented on WICKET-5842:
------------------------------------

Works fine here if I set the locale to en_NZ explicitly in the session: Today is converted to ''26/02/15".

Is your browser sending "en_NZ" as Accept-Language header? The system's locale via Locale.getDefault() does not matter.

> DateTextField uses wrong locale
> -------------------------------
>
>                 Key: WICKET-5842
>                 URL: https://issues.apache.org/jira/browse/WICKET-5842
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 6.19.0
>         Environment: Windows 7, JDK 1.8, Wicket 6.19.0, Locale.getDefault() is en_NZ
>            Reporter: Bernard
>         Attachments: testcase.zip
>
>
> I am getting the wrong date format, using both 
> org.apache.wicket.datetime.markup.html.form.DateTextField
> org.apache.wicket.extensions.markup.html.form.DateTextField
> with org.apache.wicket.extensions.yui.calendar.DatePicker
> Expected date format: dd/mm/yy
> Actual date format: mm/dd/yy
> My apologies if I am misunderstanding the API.
> My goal is to get minimal robust date picker functionality on a wire frame for agile development, without maintenance risk, out of the box. Wicket standard practice in other words.
> If that means that I get 3 list boxes with year, month and day that would be acceptable as a workaround.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)