From b83d30409e6c97de66a1822c187ed4b737d9aae9 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 9 Apr 2011 11:51:33 -0500 Subject: [PATCH] Fix - How to see the time colunm from the WEBUI https://sourceforge.net/projects/adempiere/forums/forum/610546/topic/2063231 --- .../org/adempiere/webui/component/GridTabRowRenderer.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/GridTabRowRenderer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/GridTabRowRenderer.java index cefd987b1d..ca71d7402b 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/GridTabRowRenderer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/GridTabRowRenderer.java @@ -197,10 +197,7 @@ public class GridTabRowRenderer implements RowRenderer, RowRendererExt, Renderer } else if (gridTab.getTableModel().getColumnClass(getColumnIndex(gridField)).equals(Timestamp.class)) { - int displayType = DisplayType.Date; - if (gridField != null && gridField.getDisplayType() == DisplayType.DateTime) - displayType = DisplayType.DateTime; - SimpleDateFormat dateFormat = DisplayType.getDateFormat(displayType, AEnv.getLanguage(Env.getCtx())); + SimpleDateFormat dateFormat = DisplayType.getDateFormat(gridField.getDisplayType(), AEnv.getLanguage(Env.getCtx())); return dateFormat.format((Timestamp)value); } else if (DisplayType.isNumeric(gridField.getDisplayType()))