Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.3.1
-
None
Description
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;
}