Fix - How to see the time colunm from the WEBUI

https://sourceforge.net/projects/adempiere/forums/forum/610546/topic/2063231
This commit is contained in:
Carlos Ruiz 2011-04-09 11:51:33 -05:00
parent 3e611e9386
commit b83d30409e
1 changed files with 1 additions and 4 deletions

View File

@ -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()))