Change of case on error message and convert db time field to date.

git-svn-id: file:///home/svn/framework3/trunk@14199 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Weeks 2011-11-09 03:48:50 +00:00
parent fb6e828a30
commit ce5b999e5e
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -117,7 +117,7 @@ public class MsfTable extends javax.swing.JTable {
for (int i = 0; i < dbNames.length; i++){ for (int i = 0; i < dbNames.length; i++){
row[i] = ((Map) dataObj).get(dbNames[i]); row[i] = ((Map) dataObj).get(dbNames[i]);
try{ try{
if(dbNames[i].endsWith("_at")) if(dbNames[i].endsWith("_at") || dbNames[i].equals("time"))
row[i] = new java.util.Date(Long.parseLong(row[i].toString()) * 1000); row[i] = new java.util.Date(Long.parseLong(row[i].toString()) * 1000);
}catch(NumberFormatException nfex){ }catch(NumberFormatException nfex){
//don't do anything //don't do anything

View File

@ -91,7 +91,7 @@ public class MsfguiApp extends SingleFrameApplication {
} }
public static void showMessage(java.awt.Component parent, Object message){ public static void showMessage(java.awt.Component parent, Object message){
String msg = message.toString(); String msg = message.toString();
if(!shuttingDown && !msg.contains("unknown session")) if(!shuttingDown && !msg.toLowerCase().contains("unknown session"))
JOptionPane.showMessageDialog(parent, message); JOptionPane.showMessageDialog(parent, message);
} }