diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WListItemRenderer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WListItemRenderer.java index 82c49fdc5d..538f9c4c1e 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WListItemRenderer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WListItemRenderer.java @@ -294,11 +294,10 @@ public class WListItemRenderer implements ListitemRenderer, 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) { diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WListbox.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WListbox.java index 7969600657..7d59ed67f7 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WListbox.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WListbox.java @@ -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);