IDEMPIERE-2349 Language wrongly applied when print format item date has pattern
This commit is contained in:
parent
63f10761f8
commit
67c4abd701
|
@ -476,7 +476,7 @@ public final class DisplayType
|
||||||
//
|
//
|
||||||
if ( pattern != null && pattern.length() > 0)
|
if ( pattern != null && pattern.length() > 0)
|
||||||
{
|
{
|
||||||
SimpleDateFormat format = (SimpleDateFormat)DateFormat.getInstance();
|
SimpleDateFormat format = (SimpleDateFormat)DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, language.getLocale());
|
||||||
try {
|
try {
|
||||||
format.applyPattern(pattern);
|
format.applyPattern(pattern);
|
||||||
return format;
|
return format;
|
||||||
|
|
Loading…
Reference in New Issue