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:
parent
3e611e9386
commit
b83d30409e
|
@ -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()))
|
||||
|
|
Loading…
Reference in New Issue