IDEMPIERE-2349 Language wrongly applied when print format item date has pattern

This commit is contained in:
Carlos Ruiz 2014-12-02 09:46:40 -05:00
parent 63f10761f8
commit 67c4abd701
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ public final class DisplayType
//
if ( pattern != null && pattern.length() > 0)
{
SimpleDateFormat format = (SimpleDateFormat)DateFormat.getInstance();
SimpleDateFormat format = (SimpleDateFormat)DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, language.getLocale());
try {
format.applyPattern(pattern);
return format;