final TimeZone timeZone = localeSettings.getTimeZone();
isoDateFormat.setTimeZone(timeZone);
setDefaultRenderer(Date.class, new FormattingTableCellRenderer(isoDateFormat));
setDefaultRenderer(Timestamp.class, new FormattingTableCellRenderer(isoDateFormat));
final DateCellEditor dateCellEditor = new DateCellEditor(Date.class);
dateCellEditor.setDateFormat(isoDateFormat);
setDefaultEditor(Date.class, dateCellEditor);
final DateCellEditor timestampEditor = new DateCellEditor(Timestamp.class);
timestampEditor.setDateFormat(isoDateFormat);
setDefaultEditor(Timestamp.class, timestampEditor);
final SimpleDateFormat dateFormat = createSafely(localeSettings.getDateFormatPattern(),
WorkspaceSettings.DATE_FORMAT_DEFAULT, localeSettings.getLocale());
dateFormat.setTimeZone(timeZone);
setDefaultRenderer(java.sql.Date.class, new FormattingTableCellRenderer(dateFormat));
final DateCellEditor sqlDateCellEditor = new DateCellEditor(java.sql.Date.class);
sqlDateCellEditor.setDateFormat(dateFormat);
setDefaultEditor(java.sql.Date.class, sqlDateCellEditor);
final SimpleDateFormat timeFormat = createSafely(localeSettings.getTimeFormatPattern(),
WorkspaceSettings.TIME_FORMAT_DEFAULT, localeSettings.getLocale());
timeFormat.setTimeZone(timeZone);