please file a jira issue -igor
On Fri, Aug 20, 2010 at 7:31 AM, Daniel Stoch <[email protected]> wrote: > Hi, > > I think there is a small bug in > org.apache.wicket.extensions.markup.html.form.DateTextField. > A DateConverter is created in the constructor: > > converter = new DateConverter() > { > private static final long serialVersionUID = 1L; > > /** > * @see > org.apache.wicket.util.convert.converters.DateConverter#getDateFormat(java.util.Locale) > */ > �...@override > public DateFormat getDateFormat(Locale locale) > { > return new > SimpleDateFormat(DateTextField.this.datePattern); > } > }; > > But I think getDateFormat(...) method should looks like: > > @Override > public DateFormat getDateFormat(Locale locale) > { > if (locale == null) > { > locale = Locale.getDefault(); > } > return new SimpleDateFormat(DateTextField.this.datePattern. locale); > } > > -- > Daniel >
