IDEMPIERE-3631 InfoWindow : Reference Date+Time only displays Date in grid / peer review

This commit is contained in:
Carlos Ruiz 2018-07-09 19:24:52 +02:00
parent 3b1bf46542
commit 7f2ae83d53
2 changed files with 5 additions and 6 deletions

View File

@ -294,11 +294,10 @@ public class WListItemRenderer implements ListitemRenderer<Object>, EventListene
}
else if (field instanceof Timestamp)
{
SimpleDateFormat dateFormat = DisplayType.getDateFormat(DisplayType.Date, AEnv.getLanguage(Env.getCtx()));
if (m_tableColumns.get(columnIndex).getAD_Reference_ID()==DisplayType.DateTime) {
dateFormat = DisplayType.getDateFormat(DisplayType.DateTime, AEnv.getLanguage(Env.getCtx()),"dd/M/yyyy hh:mm");
}
int refId = m_tableColumns.get(columnIndex).getAD_Reference_ID();
if (refId == 0)
refId = DisplayType.Date;
SimpleDateFormat dateFormat = DisplayType.getDateFormat(refId, AEnv.getLanguage(Env.getCtx()));
listcell.setValue(dateFormat.format((Timestamp)field));
if (isCellEditable)
{

View File

@ -59,7 +59,7 @@ public class WListbox extends Listbox implements IMiniTable, TableValueChangeLis
/**
*
*/
private static final long serialVersionUID = -706774424788688953L;
private static final long serialVersionUID = -5501893389366975849L;
/** Logger. */
private static CLogger logger = CLogger.getCLogger(WListbox.class);