StyleDateConverter does not use the components Locale when formatting.
----------------------------------------------------------------------

                 Key: WICKET-1401
                 URL: https://issues.apache.org/jira/browse/WICKET-1401
             Project: Wicket
          Issue Type: Bug
          Components: wicket-datetime
    Affects Versions: 1.3.1
            Reporter: Ned Collyer


The StyleDateConverter class does not use .withLocale(getLocale()) in the 
getFormat() method.

This means that any "LL" formatted dates do not have the correct translations 
present when outputting words (eg, month).

protected DateTimeFormatter getFormat() {
  DateTimeFormatter dtf = 
DateTimeFormat.forPattern(getDatePattern()).withPivotYear(2000);
  return dtf;
}

should be

protected DateTimeFormatter getFormat() {
  DateTimeFormatter dtf = 
DateTimeFormat.forPattern(getDatePattern()).withLocale(getLocale()).withPivotYear(2000);
  return dtf;
}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to